kernel: bump 4.19 to 4.19.84
[openwrt/staging/noltari.git] / target / linux / generic / hack-4.19 / 902-debloat_proc.patch
index 73a1f3677c0bd60b4d792013b99cd865b7387cbe..ec976c165b326652536dd7db705d53c0c7fb041d 100644 (file)
@@ -248,10 +248,10 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  #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);
 +      if (!IS_ENABLED(CONFIG_PROC_STRIPPED)) {
 +              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("zoneinfo", 0444, NULL, &zoneinfo_op);
 +      }
        proc_create_seq("vmstat", 0444, NULL, &vmstat_op);