From: Tingmao Wang <m@maowtm.org>
To: "Mickaël Salaün" <mic@digikod.net>, "Günther Noack" <gnoack@google.com>
Cc: Tingmao Wang <m@maowtm.org>, linux-security-module@vger.kernel.org
Subject: [PATCH 0/3] selftests/landlock: UX improvements
Date: Sat, 24 May 2025 18:56:31 +0100 [thread overview]
Message-ID: <cover.1748108582.git.m@maowtm.org> (raw)
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
next reply other threads:[~2025-05-24 17:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-24 17:56 Tingmao Wang [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1748108582.git.m@maowtm.org \
--to=m@maowtm.org \
--cc=gnoack@google.com \
--cc=linux-security-module@vger.kernel.org \
--cc=mic@digikod.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).