]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.36.2/acpi-debugfs-custom_method-open-to-non-root.patch
fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 2.6.36.2 / acpi-debugfs-custom_method-open-to-non-root.patch
1 From ed3aada1bf34c5a9e98af167f125f8a740fc726a Mon Sep 17 00:00:00 2001
2 From: Dave Jones <davej@redhat.com>
3 Date: Sat, 13 Nov 2010 00:58:54 -0500
4 Subject: ACPI: debugfs custom_method open to non-root
5
6 From: Dave Jones <davej@redhat.com>
7
8 commit ed3aada1bf34c5a9e98af167f125f8a740fc726a upstream.
9
10 Currently we have:
11
12 --w--w--w-. 1 root root 0 2010-11-11 14:56 /sys/kernel/debug/acpi/custom_method
13
14 which is just crazy. Change this to --w-------.
15
16 Signed-off-by: Dave Jones <davej@redhat.com>
17 Signed-off-by: Len Brown <len.brown@intel.com>
18 Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
20
21 ---
22 drivers/acpi/debugfs.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25 --- a/drivers/acpi/debugfs.c
26 +++ b/drivers/acpi/debugfs.c
27 @@ -79,7 +79,7 @@ int __init acpi_debugfs_init(void)
28 if (!acpi_dir)
29 goto err;
30
31 - cm_dentry = debugfs_create_file("custom_method", S_IWUGO,
32 + cm_dentry = debugfs_create_file("custom_method", S_IWUSR,
33 acpi_dir, NULL, &cm_fops);
34 if (!cm_dentry)
35 goto err;