Skip to content

Commit 7d6c4df

Browse files
koct9itorvalds
authored andcommitted
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@buzz Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9c19a9c commit 7d6c4df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/kmemleak.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ static int __init kmemleak_late_init(void)
21042104
return -ENOMEM;
21052105
}
21062106

2107-
dentry = debugfs_create_file("kmemleak", S_IRUGO, NULL, NULL,
2107+
dentry = debugfs_create_file("kmemleak", 0644, NULL, NULL,
21082108
&kmemleak_fops);
21092109
if (!dentry)
21102110
pr_warn("Failed to create the debugfs kmemleak file\n");

0 commit comments

Comments
 (0)