linux-security-module.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] selftests/landlock: UX improvements
@ 2025-05-24 17:56 Tingmao Wang
  2025-05-24 17:56 ` [PATCH 1/3] selftests/landlock: Clean up tmp directory even when mount fails Tingmao Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tingmao Wang @ 2025-05-24 17:56 UTC (permalink / raw)
  To: Mickaël Salaün, Günther Noack
  Cc: Tingmao Wang, linux-security-module

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-05-25 14:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-24 17:56 [PATCH 0/3] selftests/landlock: UX improvements Tingmao Wang
2025-05-24 17:56 ` [PATCH 1/3] selftests/landlock: Clean up tmp directory even when mount fails Tingmao Wang
2025-05-24 17:56 ` [PATCH 2/3] selftests/landlock: Print a warning about directory permissions Tingmao Wang
2025-05-24 18:14   ` Tingmao Wang
2025-05-25 14:23   ` Tingmao Wang
2025-05-24 17:56 ` [PATCH 3/3] selftests/landlock: Clean up TMP_DIR and retry if dir already exists Tingmao Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).