Re: [Patch] proc: drop write permission on 'timer_list' and 'slabinfo'

From: Li Zefan
Date: Mon Aug 17 2009 - 22:01:28 EST


> static int __init slab_proc_init(void)
> {
> - proc_create("slabinfo",S_IWUSR|S_IRUGO,NULL,&proc_slabinfo_operations);
> + proc_create("slabinfo",S_IRUSR|S_IRUGO,NULL,&proc_slabinfo_operations);

S_IRUSR|S_IRUGO == S_IRUGO

> return 0;
> }
> module_init(slab_proc_init);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/