]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/landlock: Extend access right tests to directories
authorMickaël Salaün <mic@digikod.net>
Fri, 6 May 2022 16:08:15 +0000 (18:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:26:23 +0000 (10:26 +0200)
commit28961410dbcfdd44db93b35aa0021ff398e11a5e
tree7737c9b95abe95f5109e0d98bdbb4474b7ca262f
parenta8d69afe9e768b62605fa24edcee3296316b79f3
selftests/landlock: Extend access right tests to directories

commit d18955d094d09a220cf8f533f5e896a2fe31575a upstream.

Make sure that all filesystem access rights can be tied to directories.

Rename layout1.file_access_rights to layout1.file_and_dir_access_rights
to reflect this change.

Cc: Shuah Khan <shuah@kernel.org>
Link: https://lore.kernel.org/r/20220506160820.524344-6-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>
tools/testing/selftests/landlock/fs_test.c