|
|
@@ -249,10 +249,10 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
#endif
|
|
|
#ifdef CONFIG_PROC_FS
|
|
|
- proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations);
|
|
|
-- proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops);
|
|
|
+- proc_create("pagetypeinfo", 0400, NULL, &pagetypeinfo_file_ops);
|
|
|
+ if (!IS_ENABLED(CONFIG_PROC_STRIPPED)) {
|
|
|
+ proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations);
|
|
|
-+ proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops);
|
|
|
++ proc_create("pagetypeinfo", 0400, NULL, &pagetypeinfo_file_ops);
|
|
|
+ proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations);
|
|
|
+ }
|
|
|
proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations);
|