[LTP] [PATCH v2 0/4] landlock network coverage support
Andrea Cervesato
andrea.cervesato@suse.de
Tue Nov 5 10:34:24 CET 2024
This testing suite is meant to test the landlock network support.
The landlock fallback had to be modified in order to support ABI v4
which changed the landlock rules structures. Also, a new test has been
added in landlock08, testing bind() and connect() syscalls support.
A few error checks have been added in the landlock02 test.
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v2:
- check for LANDLOCK_RULE_NET_PORT symbol via autoconf
- split landlock_ruleset_attr for abi1 and abi4
- Link to v1: https://lore.kernel.org/r/20240919-landlock_network-v1-0-9c997f03bd0a@suse.com
---
Andrea Cervesato (4):
Fallback landlock network support
Network helpers in landlock suite common functions
Add landlock08 test
Add error coverage for landlock network support
configure.ac | 3 +-
include/lapi/capability.h | 4 +
include/lapi/landlock.h | 28 +--
runtest/syscalls | 1 +
testcases/kernel/syscalls/landlock/.gitignore | 1 +
testcases/kernel/syscalls/landlock/landlock01.c | 15 +-
testcases/kernel/syscalls/landlock/landlock02.c | 94 ++++++++--
testcases/kernel/syscalls/landlock/landlock03.c | 6 +-
testcases/kernel/syscalls/landlock/landlock04.c | 6 +-
testcases/kernel/syscalls/landlock/landlock05.c | 10 +-
testcases/kernel/syscalls/landlock/landlock06.c | 14 +-
testcases/kernel/syscalls/landlock/landlock07.c | 6 +-
testcases/kernel/syscalls/landlock/landlock08.c | 208 +++++++++++++++++++++
.../kernel/syscalls/landlock/landlock_common.h | 134 ++++++++++++-
14 files changed, 456 insertions(+), 74 deletions(-)
---
base-commit: 5746e25935a81043d7971d54038636b26355cd0f
change-id: 20240916-landlock_network-b4bb45fde72b
Best regards,
--
Andrea Cervesato <andrea.cervesato@suse.com>
More information about the ltp
mailing list