kernel: do not strip /proc/net/ip_mr_* in the /proc debloat patch, it is used by iproute2

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36529
v19.07.3_mercusys_ac12_duma
Felix Fietkau 11 years ago
parent 24636fcabf
commit 30c4360345

@ -266,19 +266,6 @@
return register_pernet_subsys(&igmp_net_ops);
}
#endif
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -70,6 +70,10 @@
#define CONFIG_IP_PIMSM 1
#endif
+#ifdef CONFIG_PROC_STRIPPED
+#undef CONFIG_PROC_FS
+#endif
+
struct mr_table {
struct list_head list;
#ifdef CONFIG_NET_NS
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -498,6 +498,9 @@ static __net_initdata struct pernet_oper

@ -266,19 +266,6 @@
return register_pernet_subsys(&igmp_net_ops);
}
#endif
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -70,6 +70,10 @@
#define CONFIG_IP_PIMSM 1
#endif
+#ifdef CONFIG_PROC_STRIPPED
+#undef CONFIG_PROC_FS
+#endif
+
struct mr_table {
struct list_head list;
#ifdef CONFIG_NET_NS
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -502,6 +502,9 @@ static __net_initdata struct pernet_oper

@ -255,19 +255,6 @@
proc_net_remove(net, "route");
}
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -71,6 +71,10 @@
#define CONFIG_IP_PIMSM 1
#endif
+#ifdef CONFIG_PROC_STRIPPED
+#undef CONFIG_PROC_FS
+#endif
+
struct mr_table {
struct list_head list;
#ifdef CONFIG_NET_NS
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -502,6 +502,9 @@ static __net_initdata struct pernet_oper

@ -225,19 +225,6 @@
remove_proc_entry("route", net->proc_net);
}
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -71,6 +71,10 @@
#define CONFIG_IP_PIMSM 1
#endif
+#ifdef CONFIG_PROC_STRIPPED
+#undef CONFIG_PROC_FS
+#endif
+
struct mr_table {
struct list_head list;
#ifdef CONFIG_NET_NS
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -503,6 +503,9 @@ static __net_initdata struct pernet_oper

Loading…
Cancel
Save