]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/landlock: Fully test file rename with "remove" access
authorMickaël Salaün <mic@digikod.net>
Fri, 6 May 2022 16:08:16 +0000 (18:08 +0200)
committerMickaël Salaün <mic@digikod.net>
Mon, 23 May 2022 11:27:50 +0000 (13:27 +0200)
commit5df08923e715832dd179e2e5b7a478af5eda4e8b
treeed7a2e7c27a870c96ac80e82ee8802efe98a8187
parent94b1b0a783ecc2403eafa2e523c172a471dcf4da
selftests/landlock: Fully test file rename with "remove" access

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>
tools/testing/selftests/landlock/fs_test.c