[RFC PATCH v1 0/2] Fix non-TCP sockets restriction
Mikhail Ivanov
ivanov.mikhail1 at huawei-partners.com
Thu Oct 3 14:39:30 UTC 2024
Hello!
This patch fixes incorrect restriction of non-TCP bind/connect actions.
Added tests cover all protocols which were incorrectly restricted. But I'm
not sure this coverage is necessary (considering a little complication of
network selftests), probably checking a single protocol (e.g. MPTCP) will
be enough. WDYT?
Closes: https://github.com/landlock-lsm/linux/issues/40
Mikhail Ivanov (2):
landlock: Fix non-TCP sockets restriction
selftests/landlock: Test non-TCP INET connection-based protocols
security/landlock/net.c | 2 +-
tools/testing/selftests/landlock/common.h | 1 +
tools/testing/selftests/landlock/config | 5 +
tools/testing/selftests/landlock/net_test.c | 212 ++++++++++++++++++--
4 files changed, 199 insertions(+), 21 deletions(-)
base-commit: af3319b445a28d51bf936cf4fe350f9c8eda5a3a
--
2.34.1
More information about the Linux-security-module-archive
mailing list