Skip to content

Commit

Permalink
kmemleak: change /sys/kernel/debug/kmemleak permissions from 0444 to …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
koct9i authored and torvalds committed Nov 16, 2017
1 parent 9c19a9c commit 7d6c4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
&kmemleak_fops);
if (!dentry)
pr_warn("Failed to create the debugfs kmemleak file\n");
Expand Down

0 comments on commit 7d6c4df

Please sign in to comment.