projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c19a9c
)
kmemleak: change /sys/kernel/debug/kmemleak permissions from 0444 to 0644
author
Konstantin Khlebnikov
<
[email protected]
>
Thu, 16 Nov 2017 01:35:30 +0000
(17:35 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 16 Nov 2017 02:21:04 +0000
(18:21 -0800)
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]
>
mm/kmemleak.c
patch
|
blob
|
history
diff --git
a/mm/kmemleak.c
b/mm/kmemleak.c
index 7780cd83a4956f1a3cd9653cbd0737ad3f8c4f4e..fca3452e56c1eafe865e1c39db424240011c9afb 100644
(file)
--- a/
mm/kmemleak.c
+++ b/
mm/kmemleak.c
@@
-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");