Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed3aada1 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds
Browse files

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: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
Cc: stable@kernel.org (for 2.6.36)
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9457b24a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;