linux-stable/tools/testing/selftests/landlock
Mickaël Salaün f12f8f8450
selftests/landlock: Add tests for FS topology changes with network rules
Add 2 tests to the layout1 fixture:
* topology_changes_with_net_only: Checks that FS topology
  changes are not denied by network-only restrictions.
* topology_changes_with_net_and_fs: Make sure that FS topology
  changes are still denied with FS and network restrictions.

This specifically test commit d722036403 ("landlock: Allow FS topology
changes for domains without such rule type").

Cc: Konstantin Meskhidze <konstantin.meskhidze@huawei.com>
Link: https://lore.kernel.org/r/20231027154615.815134-1-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2023-10-27 17:53:31 +02:00
..
.gitignore
base_test.c landlock: Support network rules with TCP bind and connect 2023-10-26 21:07:15 +02:00
common.h selftests/landlock: Add network tests 2023-10-26 21:07:16 +02:00
config selftests/landlock: Add network tests 2023-10-26 21:07:16 +02:00
config.um selftests/landlock: Add hostfs tests 2023-06-12 21:26:23 +02:00
fs_test.c selftests/landlock: Add tests for FS topology changes with network rules 2023-10-27 17:53:31 +02:00
Makefile selftests/landlock: Build without static libraries 2022-10-19 22:10:56 +02:00
net_test.c selftests/landlock: Add network tests 2023-10-26 21:07:16 +02:00
ptrace_test.c selftests/landlock: Test ptrace as much as possible with Yama 2023-01-27 18:53:55 +01:00
true.c