mirror-linux/tools/testing/selftests/landlock
Jeff Xu 21477427ec selftests/landlock: Test ptrace as much as possible with Yama
commit 8677e555f1 upstream.

Update ptrace tests according to all potential Yama security policies.
This is required to make such tests pass even if Yama is enabled.

Tests are not skipped but they now check both Landlock and Yama boundary
restrictions at run time to keep a maximum test coverage (i.e. positive
and negative testing).

Signed-off-by: Jeff Xu <jeffxu@google.com>
Link: https://lore.kernel.org/r/20230114020306.1407195-2-jeffxu@google.com
Cc: stable@vger.kernel.org
[mic: Add curly braces around EXPECT_EQ() to make it build, and improve
commit message]
Co-developed-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-10 09:34:10 +01:00
..
.gitignore
Makefile selftests/landlock: Build without static libraries 2022-10-19 22:10:56 +02:00
base_test.c landlock: Add support for file reparenting with LANDLOCK_ACCESS_FS_REFER 2022-05-23 13:27:59 +02:00
common.h selftests/landlock: Format with clang-format 2022-05-23 13:27:39 +02:00
config
fs_test.c selftests/landlock: Skip overlayfs tests when not supported 2023-03-10 09:34:09 +01:00
ptrace_test.c selftests/landlock: Test ptrace as much as possible with Yama 2023-03-10 09:34:10 +01:00
true.c