linux-loongson/tools/testing/selftests/landlock
Mickaël Salaün dae01387e6
selftests/landlock: Add test to check rule tied to covered mount point
This test checks that a rule on a directory used as a mount point does
not grant access to the mount covering it.  It is a generalization of
the bind mount case in layout3_fs.hostfs.release_inodes [1] that tests
hidden mount points.

Cc: Günther Noack <gnoack@google.com>
Cc: Song Liu <song@kernel.org>
Cc: Tingmao Wang <m@maowtm.org>
Link: https://lore.kernel.org/r/20250606.zo5aekae6Da6@digikod.net [1]
Link: https://lore.kernel.org/r/20250606110811.211297-1-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2025-06-19 13:55:41 +02:00
..
.gitignore selftests/landlock: Test audit with restrict flags 2025-03-26 13:59:46 +01:00
audit_test.c selftests/landlock: Fix build of audit_test 2025-06-19 13:55:40 +02:00
audit.h selftests/landlock: Fix readlink check 2025-06-19 13:55:38 +02:00
base_test.c selftests/landlock: Extend tests for landlock_restrict_self(2)'s flags 2025-03-26 13:59:45 +01:00
common.h selftests/landlock: Add audit tests for filesystem 2025-03-26 13:59:48 +01:00
config selftests/landlock: Add tests for audit flags and domain IDs 2025-03-26 13:59:45 +01:00
config.um selftests/landlock: Add hostfs tests 2023-06-12 21:26:23 +02:00
fs_test.c selftests/landlock: Add test to check rule tied to covered mount point 2025-06-19 13:55:41 +02:00
Makefile selftests/landlock: Test audit with restrict flags 2025-03-26 13:59:46 +01:00
net_test.c selftests/landlock: Add audit tests for network 2025-03-26 13:59:48 +01:00
ptrace_test.c selftests/landlock: Add audit tests for ptrace 2025-03-26 13:59:47 +01:00
sandbox-and-launch.c selftests/landlock: Add layout1.umount_sandboxer tests 2025-01-17 19:05:38 +01:00
scoped_abstract_unix_test.c selftests/landlock: Add audit tests for abstract UNIX socket scoping 2025-03-26 13:59:47 +01:00
scoped_base_variants.h selftests/landlock: Test abstract UNIX socket scoping 2024-09-16 23:50:48 +02:00
scoped_common.h selftests/landlock: Test abstract UNIX socket scoping 2024-09-16 23:50:48 +02:00
scoped_multiple_domain_variants.h selftests/landlock: Test abstract UNIX socket scoping 2024-09-16 23:50:48 +02:00
scoped_signal_test.c selftests/landlock: Add a new test for setuid() 2025-03-26 13:59:32 +01:00
scoped_test.c landlock: Add signal scoping 2024-09-16 23:50:52 +02:00
true.c
wait-pipe-sandbox.c selftests/landlock: Test audit with restrict flags 2025-03-26 13:59:46 +01:00
wait-pipe.c selftests/landlock: Add layout1.umount_sandboxer tests 2025-01-17 19:05:38 +01:00
wrappers.h selftests/landlock: Add wrappers.h 2025-01-17 19:05:38 +01:00