[PATCH 0/3] selftests/landlock: UX improvements
Tingmao Wang
m at maowtm.org
Sat May 24 17:56:31 UTC 2025
Hi,
A while ago I tried running the landlock selftests and it took me a while
to get it completely working. One of the main thing which confused me a
bit was the fact that I was missing the right permissions on the test
directory, and this matters even though I ran the test with root.
The other slightly annoying thing was that the mkdir would fail with
EEXIST if a previous run fails to setup.
This patch series tries to improve the experience should someone else runs
into the same issues.
Tingmao Wang (3):
selftests/landlock: Clean up tmp directory even when mount fails
selftests/landlock: Print a warning about directory permissions
selftests/landlock: Clean up TMP_DIR and retry if dir already exists
tools/testing/selftests/landlock/fs_test.c | 91 +++++++++++++++++++---
1 file changed, 81 insertions(+), 10 deletions(-)
base-commit: a5806cd506af5a7c19bcd596e4708b5c464bfd21
--
2.49.0
More information about the Linux-security-module-archive
mailing list