Skip to content

Commit

Permalink
ACPI: debugfs custom_method open to non-root
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Jones authored and Linus Torvalds committed Nov 13, 2010
1 parent 9457b24 commit ed3aada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ int __init 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;
Expand Down

0 comments on commit ed3aada

Please sign in to comment.