mm, vmstat: hide /proc/pagetypeinfo from normal users
[sfrench/cifs-2.6.git] / mm / vmstat.c
index 6afc892a148a0408a901695d42529a2a1be99939..4e885ecd44d18e22ed69ad3a7eefe805295c2596 100644 (file)
@@ -1972,7 +1972,7 @@ void __init init_mm_internals(void)
 #endif
 #ifdef CONFIG_PROC_FS
        proc_create_seq("buddyinfo", 0444, NULL, &fragmentation_op);
-       proc_create_seq("pagetypeinfo", 0444, NULL, &pagetypeinfo_op);
+       proc_create_seq("pagetypeinfo", 0400, NULL, &pagetypeinfo_op);
        proc_create_seq("vmstat", 0444, NULL, &vmstat_op);
        proc_create_seq("zoneinfo", 0444, NULL, &zoneinfo_op);
 #endif