Minor Landlock fixes and new tests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest10 patches 0 repliesNew
- v17 patches 2 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | landlock: Fix landlock_add_rule(2) documentationinclude/ security/ | +6 | 0 replies | |
| 2/10 | selftests/landlock: Make tests build with old libctools/ | +18 | 0 replies | |
| 3/10 | selftests/landlock: Extend tests for minimal valid attribute sizetools/ | +5 | 0 replies | |
| 4/10 | selftests/landlock: Add tests for unknown access rightstools/ | +16 | 0 replies | |
| 5/10 | selftests/landlock: Extend access right tests to directoriestools/ | +22 | 0 replies | |
| 6/10 | selftests/landlock: Fully test file rename with "remove" accesstools/ | +37 | 0 replies | |
| 7/10 | selftests/landlock: Add tests for O_PATHtools/ | +8 | 0 replies | |
| 8/10 | landlock: Change landlock_add_rule(2) argument check orderingsecurity/ tools/ | +45 | 0 replies | |
| 9/10 | landlock: Change landlock_restrict_self(2) check orderingsecurity/ tools/ | +41 | 0 replies | |
| 10/10 | selftests/landlock: Test landlock_create_ruleset(2) argument check orderingtools/ | +20 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/10] Minor Landlock fixes and new tests
Hi,
This series contains some minor code and documentation fixes. There is also some miscellaneous new tests to improve coverage and that may help for future access types (e.g. networking).
The important new patches are the last three ones. They change the landlock_add_rule(2) and landlock_restrict_self(2) check orderings to make them more consistent according to future Landlock rule types (e.g. networking).
As suggested by Alejandro Colomar [1], I removed the landlock_add_rule(2) signature fix. I added a new patch to test O_PATH behavior.
Test coverage for security/landlock was 94.4% of 500 lines, and it is now 94.4% of 504 lines according to gcc/gcov-11.
I also fixed some typos and formatted the code with clang-format. This series can be applied on top of
https://lore.kernel.org/r/[email protected]
[1] https://lore.kernel.org/r/[email protected]
Previous version:
https://lore.kernel.org/r/[email protected]
Regards,
Mickaël Salaün (10):
landlock: Fix landlock_add_rule(2) documentation selftests/landlock: Make tests build with old libc selftests/landlock: Extend tests for minimal valid attribute size selftests/landlock: Add tests for unknown access rights selftests/landlock: Extend access right tests to directories selftests/landlock: Fully test file rename with "remove" access selftests/landlock: Add tests for O_PATH
landlock: Change landlock_add_rule(2) argument check ordering
landlock: Change landlock_restrict_self(2) check ordering selftests/landlock: Test landlock_create_ruleset(2) argument check
ordering
include/uapi/linux/landlock.h | 5 +- security/landlock/syscalls.c | 37 +++--- tools/testing/selftests/landlock/base_test.c | 107 +++++++++++++++-- tools/testing/selftests/landlock/fs_test.c | 120 ++++++++++++++++--- 4 files changed, 218 insertions(+), 51 deletions(-)
base-commit: 763c5dc0e990fbd803c3c2b1ae832366ab7d207f
Signature · 1 line
2.35.1