]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 17:25:43 +0000 (18:25 +0100)
commit90c618efaeffa2c7e9244265988558de84e0e640
treeda8a32687f281aad5e598756ef37a91679739770
parent5324c459f90d16b0c43a78b494c598915d782b7a
selftests/landlock: Test TCP accesses with protocol=IPPROTO_TCP

commit f5534d511bcd273720f168386de74af76e148a9b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/landlock/common.h
tools/testing/selftests/landlock/net_test.c