提交 7d6c4dfa 编写于 作者: K Konstantin Khlebnikov 提交者: Linus Torvalds

kmemleak: change /sys/kernel/debug/kmemleak permissions from 0444 to 0644

Kmemleak can be tweaked at runtime by writing commands into debugfs
file.  Root can use it anyway, but without the write-bit this interface
isn't obvious.

Link: http://lkml.kernel.org/r/150728996582.744328.11541332857988399411.stgit@buzzSigned-off-by: NKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Acked-by: NCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 9c19a9cb
...@@ -2104,7 +2104,7 @@ static int __init kmemleak_late_init(void) ...@@ -2104,7 +2104,7 @@ static int __init kmemleak_late_init(void)
return -ENOMEM; return -ENOMEM;
} }
dentry = debugfs_create_file("kmemleak", S_IRUGO, NULL, NULL, dentry = debugfs_create_file("kmemleak", 0644, NULL, NULL,
&kmemleak_fops); &kmemleak_fops);
if (!dentry) if (!dentry)
pr_warn("Failed to create the debugfs kmemleak file\n"); pr_warn("Failed to create the debugfs kmemleak file\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册