Commit 7d6c4dfa authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by 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: default avatarKonstantin Khlebnikov <>
Acked-by: default avatarCatalin Marinas <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 9c19a9cb
......@@ -2104,7 +2104,7 @@ static int __init kmemleak_late_init(void)
return -ENOMEM;
dentry = debugfs_create_file("kmemleak", S_IRUGO, NULL, NULL,
dentry = debugfs_create_file("kmemleak", 0644, NULL, NULL,
if (!dentry)
pr_warn("Failed to create the debugfs kmemleak file\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment