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

From: Pekka Enberg
Date: Tue Aug 18 2009 - 12:12:57 EST


Li Zefan wrote:
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);


I went ahead and fixed that. Applied, thanks everyone!
--
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/