selftests/landlock: Test TCP accesses with protocol=IPPROTO_TCP
authorMikhail Ivanov <ivanov.mikhail1@huawei-partners.com>
Wed, 5 Feb 2025 09:36:50 +0000 (17:36 +0800)
committerMickaël Salaün <mic@digikod.net>
Fri, 14 Feb 2025 08:23:09 +0000 (09:23 +0100)
commitf5534d511bcd273720f168386de74af76e148a9b
tree3632b3586d0ef687c3c689b136ea8456c70d96f5
parent854277e2cc8c75dc3c216c82e72523258fcf65b9
selftests/landlock: Test TCP accesses with protocol=IPPROTO_TCP

Extend protocol_variant structure with protocol field (Cf. socket(2)).

Extend protocol fixture with TCP test suits with protocol=IPPROTO_TCP
which can be used as an alias for IPPROTO_IP (=0) in socket(2).

Signed-off-by: Mikhail Ivanov <ivanov.mikhail1@huawei-partners.com>
Link: https://lore.kernel.org/r/20250205093651.1424339-3-ivanov.mikhail1@huawei-partners.com
Cc: <stable@vger.kernel.org> # 6.7.x
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/common.h
tools/testing/selftests/landlock/net_test.c