Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Dave Jones and committed by
Linus Torvalds
ed3aada1 9457b24a

+1 -1
+1 -1
drivers/acpi/debugfs.c
··· 80 80 if (!acpi_dir) 81 81 goto err; 82 82 83 - cm_dentry = debugfs_create_file("custom_method", S_IWUGO, 83 + cm_dentry = debugfs_create_file("custom_method", S_IWUSR, 84 84 acpi_dir, NULL, &cm_fops); 85 85 if (!cm_dentry) 86 86 goto err;