浏览代码

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>
Dave Jones 14 年之前
父节点
当前提交
ed3aada1bf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/acpi/debugfs.c

+ 1 - 1
drivers/acpi/debugfs.c

@@ -80,7 +80,7 @@ int __init acpi_debugfs_init(void)
 	if (!acpi_dir)
 	if (!acpi_dir)
 		goto err;
 		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);
 					acpi_dir, NULL, &cm_fops);
 	if (!cm_dentry)
 	if (!cm_dentry)
 		goto err;
 		goto err;