linux-stable/tools/testing/selftests/landlock
Mickaël Salaün 411a409cb7 selftests/landlock: Fully test file rename with "remove" access
commit 6a1bdd4a0b upstream.

These tests were missing to check the check_access_path() call with all
combinations of maybe_remove(old_dentry) and maybe_remove(new_dentry).

Extend layout1.link with a new complementary test and check that
REMOVE_FILE is not required to link a file.

Cc: Shuah Khan <shuah@kernel.org>
Link: https://lore.kernel.org/r/20220506160820.524344-7-mic@digikod.net
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-09 10:30:47 +02:00
..
.gitignore
base_test.c selftests/landlock: Extend tests for minimal valid attribute size 2022-06-09 10:30:47 +02:00
common.h selftests/landlock: Format with clang-format 2022-06-09 10:30:46 +02:00
config
fs_test.c selftests/landlock: Fully test file rename with "remove" access 2022-06-09 10:30:47 +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-06-09 10:30:46 +02:00
true.c