diff options
author | Dave Jones <davej@redhat.com> | 2010-11-13 08:58:54 +0300 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2010-12-15 01:40:14 +0300 |
commit | 594574f0ba7ae9985662f9b0b8a9754c9da552c3 (patch) | |
tree | b7330747e62849050355c000a7931976f2f2ab6a /drivers | |
parent | a499d3ff08c1c10821a2a1811fe8597d50a8de62 (diff) | |
download | linux-594574f0ba7ae9985662f9b0b8a9754c9da552c3.tar.xz |
ACPI: debugfs custom_method open to non-root
commit ed3aada1bf34c5a9e98af167f125f8a740fc726a upstream.
Currently we have:
--w--w--w-. 1 root root 0 2010-11-11 14:56 /sys/kernel/debug/acpi/custom_method
which is just crazy. Change this to --w-------.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/debug.c b/drivers/acpi/debug.c index 146135e7a6a1..469f04940cf2 100644 --- a/drivers/acpi/debug.c +++ b/drivers/acpi/debug.c @@ -258,7 +258,7 @@ static int acpi_debugfs_init(void) if (!acpi_dir) goto err; - cm_dentry = debugfs_create_file("custom_method", S_IWUGO, + cm_dentry = debugfs_create_file("custom_method", S_IWUSR, acpi_dir, NULL, &cm_fops); if (!cm_dentry) goto err; |