* [MPTCP] [PATCH 0/2] mptcp: disallow setting the MPTCP ULP from userspace
@ 2019-10-08 14:43 Davide Caratti
0 siblings, 0 replies; only message in thread
From: Davide Caratti @ 2019-10-08 14:43 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]
with this series we make
setscokopt(..., IPPROTO_TCP, TCP_ULP, "mptcp", sizeof("mptcp"));
return -1 and set errno to -EOPNOPSUPPORT.
this allows attaching MPTCP ULP only to a TCP socket that has been
created through sock_create_kern().
- Patch 1/2 lets subflow_init() fail with -EOPNOTSUPPORT in case users
try to setsockopt(..., TCP_ULP) on a TCP socket that has been created
by a userspace program. I suggest squashing this patch in "mptcp:
Associate MPTCP context with TCP socket".
- Patch 2/2 includes kselftest code. I suggest squashing it with "mptcp:
add basic kselftest for mptcp".*** SUBJECT HERE ***
Davide Caratti (2):
mptcp: subflow: disallow setsockopt(... TCP_ULP, "mptcp")
selftests: test setsockopt(..., TCP_ULP, "mptcp", ...)
net/mptcp/subflow.c | 7 +++
.../selftests/net/mptcp/mptcp_connect.c | 49 +++++++++++++++++--
.../selftests/net/mptcp/mptcp_connect.sh | 19 +++++++
3 files changed, 72 insertions(+), 3 deletions(-)
--
2.21.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-08 14:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-08 14:43 [MPTCP] [PATCH 0/2] mptcp: disallow setting the MPTCP ULP from userspace Davide Caratti
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.