diff options
author | Dave Jones <davej@redhat.com> | 2010-11-13 00:58:54 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-04-17 16:16:01 -0400 |
commit | 3bdf85c28cb158e4369145edf9893e29f3f256b0 (patch) | |
tree | f7c01fbd1d557d0a2f15e1506708a89d5bd0f940 | |
parent | 41823d702430b1bdd671b55699b0d4bab806b4af (diff) |
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-------.
[PG: back in 2.6.34, the file was called debug.c, not debugfs.c]
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: Paul Gortmaker <paul.gortmaker@windriver.com>
-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 146135e7a6a..469f04940cf 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; |