]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17a2cdbd9da73b316f19d8f6cebfa402876a555e
tree4a26a3696905c50e800abcab1cb7d7e3dc14f4c5
parent5fea63ebd4ca139740ea70395d2fc73dfc88e53a
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