linux/tools/testing/selftests/landlock
Mickaël Salaün eba39ca4b1
landlock: Change landlock_restrict_self(2) check ordering
According to the Landlock goal to be a security feature available to
unprivileges processes, it makes more sense to first check for
no_new_privs before checking anything else (i.e. syscall arguments).

Merge inval_fd_enforce and unpriv_enforce_without_no_new_privs tests
into the new restrict_self_checks_ordering.  This is similar to the
previous commit checking other syscalls.

Link: https://lore.kernel.org/r/20220506160820.524344-10-mic@digikod.net
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2022-05-23 13:27:51 +02:00
..
.gitignore
base_test.c landlock: Change landlock_restrict_self(2) check ordering 2022-05-23 13:27:51 +02:00
common.h selftests/landlock: Format with clang-format 2022-05-23 13:27:39 +02:00
config
fs_test.c selftests/landlock: Add tests for O_PATH 2022-05-23 13:27:50 +02:00
Makefile selftests: landlock: Add the uapi headers include variable 2022-02-23 17:20:47 -07:00
ptrace_test.c selftests/landlock: Format with clang-format 2022-05-23 13:27:39 +02:00
true.c