selftests/landlock: Fix FS tests when run on a private mount point

According to the test environment, the mount point of the test's working
directory may be shared or not, which changes the visibility of the
nested "tmp" mount point for the test's parent process calling

This was spotted while running tests in containers [1], where mount
points are private.

Cc: Günther Noack <>
Cc: Shuah Khan <>
Link: [1]
Fixes: 41cca0542d7c ("selftests/harness: Fix TEST_F()'s vfork handling")
Reviewed-by: Kees Cook <>
Signed-off-by: Mickaël Salaün <>
1 file changed