projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcb0ce1
)
SLUB: Drop write permission to /proc/slabinfo
author
WANG Cong
<amwang@redhat.com>
Tue, 18 Aug 2009 16:11:40 +0000
(19:11 +0300)
committer
Pekka Enberg
<penberg@cs.helsinki.fi>
Tue, 18 Aug 2009 16:11:40 +0000
(19:11 +0300)
SLUB does not support writes to /proc/slabinfo so there should not be write
permission to do that either.
Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/slub.c
b/mm/slub.c
index 801fe4b9b68d956ca87158dc13273b51d60b4a82..e16c9fb1f48bb6b33145bc4fb4cd23a09b26d6a9 100644
(file)
--- a/
mm/slub.c
+++ b/
mm/slub.c
@@
-4758,7
+4758,7
@@
static const struct file_operations proc_slabinfo_operations = {
static int __init slab_proc_init(void)
{
- proc_create("slabinfo",
S_IWUSR|S_IRUGO,NULL,
&proc_slabinfo_operations);
+ proc_create("slabinfo",
S_IRUGO, NULL,
&proc_slabinfo_operations);
return 0;
}
module_init(slab_proc_init);