]> git.karo-electronics.de Git - karo-tx-linux.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)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:14 +0000 (23:40 +0100)
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-------.

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: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/acpi/debug.c

index 146135e7a6a125731ec902e898bfe4b9364c0d6e..469f04940cf2d713a31e8a20bd2fe6ddbfb6c886 100644 (file)
@@ -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;