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 <[email protected]>
Signed-off-by: Len Brown <[email protected]>
Cc: [email protected] (for 2.6.36)
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Dave Jones 2010-11-13 00:58:54 -05:00 • committed by Linus Torvalds
commit ed3aada1bf

View file

@ -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;