]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'netns-sysctl-isolation'
authorDavid S. Miller <davem@davemloft.net>
Mon, 12 Apr 2021 20:27:11 +0000 (13:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Apr 2021 20:27:11 +0000 (13:27 -0700)
commit0da30d8f32c97ae19210e74766e7f49a3d95866e
tree4f871cebe602618f0bf13b51746d9499c9b7cca9
parent0b72c674c0564ce92f6555517b2ac2b95a8ab6a0
parent5b64bb5c5d118f098bb7fdc2b58c39496e8844ec
Merge branch 'netns-sysctl-isolation'

Jonathon Reinhart says:

====================
Ensuring net sysctl isolation

This patchset is the result of an audit of /proc/sys/net to prove that
it is safe to be mouted read-write in a container when a net namespace
is in use. See [1].

The first commit adds code to detect sysctls which are not netns-safe,
and can "leak" changes to other net namespaces.

My manual audit found, and the above feature confirmed, that there are
two nf_conntrack sysctls which are in fact not netns-safe.

I considered sending the latter to netfilter-devel, but I think it's
better to have both together on net-next: Adding only the former causes
undesirable warnings in the kernel log.

[1]: https://github.com/opencontainers/runc/issues/2826
====================

Signed-off-by: David S. Miller <davem@davemloft.net>