]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ACPI: debugfs custom_method open to non-root
authorDave Jones <davej@redhat.com>
Sat, 13 Nov 2010 05:58:54 +0000 (00:58 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 13 Nov 2010 17:52:16 +0000 (09:52 -0800)
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>
drivers/acpi/debugfs.c

index 6355b575ee5ac22498b32953e0955cb2811e81ba..5df67f1d6c612537f10ac2fd84b6720911d16723 100644 (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;