Skip to content

selftests/landlock: UX improvements

Tingmao Wang linux-security-module 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3selftests/landlock: Clean up tmp directory even when mount failstools/testing/selftests/landlock/fs_test.c+9 -30 replies
2/3selftests/landlock: Print a warning about directory permissionstools/testing/selftests/landlock/fs_test.c+31 -42 replies
3/3selftests/landlock: Clean up TMP_DIR and retry if dir already existstools/testing/selftests/landlock/fs_test.c+41 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] selftests/landlock: UX improvements

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