ipv4: enable route flushing in network namespaces
authorChristian Brauner <christian@brauner.io>
Mon, 24 Jun 2019 13:29:23 +0000 (15:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2019 21:34:28 +0000 (14:34 -0700)
commit5cdda5f1d6adde02da591ca2196f20289977dc56
tree4a26a3696905c50e800abcab1cb7d7e3dc14f4c5
parent65dc5416d4e02d80ce140078c7c1f4e6c8400396
ipv4: enable route flushing in network namespaces

Tools such as vpnc try to flush routes when run inside network
namespaces by writing 1 into /proc/sys/net/ipv4/route/flush. This
currently does not work because flush is not enabled in non-initial
network namespaces.
Since routes are per network namespace it is safe to enable
/proc/sys/net/ipv4/route/flush in there.

Link: https://github.com/lxc/lxd/issues/4257
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c