Skip to content

landlock network coverage support

Andrea Cervesato ltp 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20240916-landlock_network-b4bb45fde72b

Versions newest first

  1. v3 Latest4 patches 5 repliesIn review
  2. v24 patches 16 repliesSuperseded
  3. v15 patches 1 replySuperseded

Changes in v3 from the cover letter

- remove some unused autoconf rules
- use _abi1 struct for landlock01
- better ENVAL handling in landlock01
- cleanup landlock02
- handle both abi1 and abi4 in landlock02
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Fallback landlock network supportconfigure.ac include/lapi/capability.h include/lapi/landlock.h +8 more+53 -615 replies
2/4Network helpers in landlock suite common functionstestcases/kernel/syscalls/landlock/landlock_common.h+124 -00 replies
3/4Add landlock08 testruntest/syscalls testcases/kernel/syscalls/landlock/.gitignore testcases/kernel/syscalls/landlock/landlock08.c+211 -00 replies
4/4Add error coverage for landlock network supporttestcases/kernel/syscalls/landlock/landlock02.c+72 -210 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchCyril HrubisLi Wang
1/4R-b R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [LTP] [PATCH v3 0/4] landlock network coverage support

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.

---
Changes in v3:
- remove some unused autoconf rules
- use _abi1 struct for landlock01
- better ENVAL handling in landlock01
- cleanup landlock02
- handle both abi1 and abi4 in landlock02
- Link to v2: https://lore.kernel.org/r/[email protected]

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/[email protected]

---
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                                       |   5 +-
 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    |  93 ++++++---
 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    | 209 +++++++++++++++++++++
 .../kernel/syscalls/landlock/landlock_common.h     | 134 ++++++++++++-
 14 files changed, 455 insertions(+), 77 deletions(-)

---
base-commit: 6408294d83682635393e36c14bbd6ebd94fead94
change-id: 20240916-landlock_network-b4bb45fde72b

Best regards,

Signature · 5 lines
Andrea Cervesato <[email protected]>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp