]> 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)
commit6edc9500e8750ecb8eb12bbb56191503f18ba1d2
tree4a26a3696905c50e800abcab1cb7d7e3dc14f4c5
parent5030b8ed40aa212d410876ca9ac4b65ce46f55f8
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