summaryrefslogtreecommitdiff
path: root/scripts/package
diff options
context:
space:
mode:
authorMatthieu Buffet <matthieu@buffet.re>2026-07-01 23:46:27 +0200
committerMickaël Salaün <mic@digikod.net>2026-07-10 12:59:07 +0200
commit33cb713db0161b54f04fe830e062c9e102c29a04 (patch)
tree912caa36ce9c5d6c92c31bfff46d47ec9d81c853 /scripts/package
parentdc59e4fea9d83f03bad6bddf3fa2e52491777482 (diff)
landlock: Fix TCP Fast Open connection bypass
The documentation of the socket_connect() LSM hook states that it controls connecting a socket to a remote address. It has not been the case since the addition of TCP Fast Open (RFC 7413) support, which allows opening a TCP connection (thus, setting a socket's destination address) via the MSG_FASTOPEN flag passed to sendto()/sendmsg()/sendmmsg(). The problem then got duplicated into MPTCP. Landlock did not take it into account when its TCP support was added, leaving a bypass of TCP connect policy. Ideally a call to the LSM hook would be added in the fastopen code path, in order to fix this generically. But connect() hooks are designed to run with the socket locked, unlike sendmsg() hooks. Closes: https://github.com/landlock-lsm/linux/issues/41 Fixes: fff69fb03dde ("landlock: Support network rules with TCP bind and connect") Signed-off-by: Matthieu Buffet <matthieu@buffet.re> Link: https://patch.msgid.link/20260701214628.33319-1-matthieu@buffet.re Cc: stable@vger.kernel.org [mic: Wrap commit message] Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'scripts/package')
0 files changed, 0 insertions, 0 deletions