From: Christoph Lameter Change permissions for /proc/vmallocinfo to only allow read for root. Signed-off-by: Christoph Lameter Cc: Arjan van de Ven Signed-off-by: Andrew Morton --- fs/proc/proc_misc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN fs/proc/proc_misc.c~vmalloc-show-vmalloced-areas-via-proc-vmallocinfo-fix fs/proc/proc_misc.c --- a/fs/proc/proc_misc.c~vmalloc-show-vmalloced-areas-via-proc-vmallocinfo-fix +++ a/fs/proc/proc_misc.c @@ -881,8 +881,7 @@ void __init proc_misc_init(void) create_seq_entry("slab_allocators", 0 ,&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); create_seq_entry("buddyinfo",S_IRUGO, &fragmentation_file_operations); create_seq_entry("pagetypeinfo", S_IRUGO, &pagetypeinfo_file_ops); create_seq_entry("vmstat",S_IRUGO, &proc_vmstat_file_operations); _