summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kselftest_harness.h
diff options
context:
space:
mode:
authorMickaël Salaün <mic@digikod.net>2024-05-11 20:14:37 +0300
committerMickaël Salaün <mic@digikod.net>2024-05-11 20:18:42 +0300
commit7e4042abe2ee7c0977fd8bb049a6991b174a5e6f (patch)
treecc9ef85764140fd4a51f22565e46b37ccee9b9a9 /tools/testing/selftests/kselftest_harness.h
parent37dc2e0d38d6eb690ee043b43ee6f7cdf2994bf6 (diff)
downloadlinux-7e4042abe2ee7c0977fd8bb049a6991b174a5e6f.tar.xz
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 umount("tmp"). This was spotted while running tests in containers [1], where mount points are private. Cc: Günther Noack <gnoack@google.com> Cc: Shuah Khan <skhan@linuxfoundation.org> Link: https://github.com/landlock-lsm/landlock-test-tools/pull/4 [1] Fixes: 41cca0542d7c ("selftests/harness: Fix TEST_F()'s vfork handling") Reviewed-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20240511171445.904356-3-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'tools/testing/selftests/kselftest_harness.h')
0 files changed, 0 insertions, 0 deletions