Subject: vmallocinfo: Only allow root to read /proc/vmallocinfo Change permissions for /proc/vmallocinfo to only allow read for root. Signed-off-by: Christoph Lameter --- fs/proc/proc_misc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Index: linux-2.6.25-rc5-mm1/fs/proc/proc_misc.c =================================================================== --- linux-2.6.25-rc5-mm1.orig/fs/proc/proc_misc.c 2008-03-20 12:14:20.215358835 -0700 +++ linux-2.6.25-rc5-mm1/fs/proc/proc_misc.c 2008-03-20 12:23:01.920887750 -0700 @@ -1002,8 +1002,7 @@ void __init proc_misc_init(void) proc_create("slab_allocators", 0, NULL, &proc_slabstats_operations); #endif #endif - proc_create("vmallocinfo",S_IWUSR|S_IRUGO, NULL, - &proc_vmalloc_operations); + proc_create("vmallocinfo",S_IRUSR, NULL, &proc_vmalloc_operations); proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations); proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops); proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations);