linux/tools/testing/selftests/landlock
Günther Noack 0d8c658be2
selftests/landlock: Test ftruncate on FDs created by memfd_create(2)
All file descriptors that are truncatable need to have the Landlock
access rights set correctly on the file's Landlock security blob. This
is also the case for files that are opened by other means than
open(2).

Test coverage for security/landlock is 94.7% of 838 lines according to
gcc/gcov-11.

Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20221018182216.301684-10-gnoack3000@gmail.com
[mic: Add test coverage in commit message]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2022-10-19 09:01:47 +02:00
..
.gitignore
base_test.c selftests/landlock: Test FD passing from restricted to unrestricted processes 2022-10-19 09:01:46 +02:00
common.h selftests/landlock: Test FD passing from restricted to unrestricted processes 2022-10-19 09:01:46 +02:00
config
fs_test.c selftests/landlock: Test ftruncate on FDs created by memfd_create(2) 2022-10-19 09:01:47 +02:00
Makefile selftests/landlock: Fix out-of-tree builds 2022-09-14 16:37:38 +02:00
ptrace_test.c selftests/landlock: Format with clang-format 2022-05-23 13:27:39 +02:00
true.c