]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/landlock: Add test to check partial access in a mount tree
authorMickaël Salaün <mic@digikod.net>
Wed, 8 Jan 2025 15:43:20 +0000 (16:43 +0100)
committerMickaël Salaün <mic@digikod.net>
Fri, 17 Jan 2025 18:05:36 +0000 (19:05 +0100)
commit12264f721f64a235f81e845e2cf95ad4a267613a
tree47fc57474b476ffbe3bad21b66f07d0e271f5e2d
parent058518c2092081f224edb37cbc236bed5c28852d
selftests/landlock: Add test to check partial access in a mount tree

Add layout1.refer_part_mount_tree_is_allowed to test the masked logical
issue regarding collect_domain_accesses() calls followed by the
is_access_to_paths_allowed() check in current_check_refer_path().  See
previous commit.

This test should work without the previous fix as well, but it enables
us to make sure future changes will not have impact regarding this
behavior.

Cc: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20250108154338.1129069-13-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/fs_test.c