diff options
author | WANG Cong <amwang@redhat.com> | 2009-08-18 12:11:40 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-08-18 12:11:40 -0400 |
commit | cf5d11317e8f2671d3115622aec76274a40f4fc2 (patch) | |
tree | f1f1e3ca5ec9cc2ce8ec3cbdaef95c27ffc4bb88 /mm/slub.c | |
parent | dcb0ce1bdf39581bcd0cffc3d487fb20667977cd (diff) |
SLUB: Drop write permission to /proc/slabinfo
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>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4758,7 +4758,7 @@ static const struct file_operations proc_slabinfo_operations = { | |||
4758 | 4758 | ||
4759 | static int __init slab_proc_init(void) | 4759 | static int __init slab_proc_init(void) |
4760 | { | 4760 | { |
4761 | proc_create("slabinfo",S_IWUSR|S_IRUGO,NULL,&proc_slabinfo_operations); | 4761 | proc_create("slabinfo", S_IRUGO, NULL, &proc_slabinfo_operations); |
4762 | return 0; | 4762 | return 0; |
4763 | } | 4763 | } |
4764 | module_init(slab_proc_init); | 4764 | module_init(slab_proc_init); |