提交 cf5d1131 编写于 作者: W WANG Cong 提交者: Pekka Enberg

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: NWANG Cong <amwang@redhat.com>
Signed-off-by: NPekka Enberg <penberg@cs.helsinki.fi>
上级 dcb0ce1b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册