diff options
author | Dave Jones <davej@redhat.com> | 2010-11-13 00:58:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-11-13 12:52:16 -0500 |
commit | ed3aada1bf34c5a9e98af167f125f8a740fc726a (patch) | |
tree | 017e81b8816dbf234117c29cdff1ec1f99bd11b7 /drivers/acpi | |
parent | 9457b24a0955bbdd2e89220a75de69fe09501bba (diff) |
ACPI: debugfs custom_method open to non-root
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>
Cc: stable@kernel.org (for 2.6.36)
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/debugfs.c b/drivers/acpi/debugfs.c index 6355b575ee5a..5df67f1d6c61 100644 --- a/drivers/acpi/debugfs.c +++ b/drivers/acpi/debugfs.c | |||
@@ -80,7 +80,7 @@ int __init acpi_debugfs_init(void) | |||
80 | if (!acpi_dir) | 80 | if (!acpi_dir) |
81 | goto err; | 81 | goto err; |
82 | 82 | ||
83 | cm_dentry = debugfs_create_file("custom_method", S_IWUGO, | 83 | cm_dentry = debugfs_create_file("custom_method", S_IWUSR, |
84 | acpi_dir, NULL, &cm_fops); | 84 | acpi_dir, NULL, &cm_fops); |
85 | if (!cm_dentry) | 85 | if (!cm_dentry) |
86 | goto err; | 86 | goto err; |