mptcp: new sysctl to control the activation per NS
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Wed, 22 Jan 2020 00:56:28 +0000 (16:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jan 2020 12:44:08 +0000 (13:44 +0100)
commit784325e9f037e5f7a7f9a46ecbb27384128f8b6e
treebe5bd8ba980fad661767ec1e0a24e16af4448d14
parent57040755a3e43a1ee2d4ce9c83e87de27b570104
mptcp: new sysctl to control the activation per NS

New MPTCP sockets will return -ENOPROTOOPT if MPTCP support is disabled
for the current net namespace.

We are providing here a way to control access to the feature for those
that need to turn it on or off.

The value of this new sysctl can be different per namespace. We can then
restrict the usage of MPTCP to the selected NS. In case of serious
issues with MPTCP, administrators can now easily turn MPTCP off.

Co-developed-by: Peter Krystad <peter.krystad@linux.intel.com>
Signed-off-by: Peter Krystad <peter.krystad@linux.intel.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/Makefile
net/mptcp/ctrl.c [new file with mode: 0644]
net/mptcp/protocol.c
net/mptcp/protocol.h