From: "Mickaël Salaün" <mic@digikod.net>
To: Oxana Kharitonova <oxana@cloudflare.com>
Cc: gnoack@google.com, paul@paul-moore.com, serge@hallyn.com,
wangyan01@kylinos.cn, linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org, landlock@lists.linux.dev,
webprosto@gmail.com
Subject: Re: [PATCH 4/6] selftests/landlock: Test POSIX message queue scoping
Date: Tue, 28 Jul 2026 13:04:10 +0200 [thread overview]
Message-ID: <20260728.Apei4yai1ea9@digikod.net> (raw)
In-Reply-To: <20260722122952.42149-5-oxana@cloudflare.com>
These tests are good, but related audit (and quiet) tests are missing.
A test should check the mqueue unlink.
A test should check that once the sandboxed process that created an
mqueue file exits, a new sibling or child sandboxed process cannot
access this (stale) mqueue, but a parent sandboxed process should still
be allowed to do so as well as for an unsandboxed process.
On Wed, Jul 22, 2026 at 01:29:40PM +0100, Oxana Kharitonova wrote:
> Add tests for LANDLOCK_SCOPE_POSIX_MSG_QUEUE.
>
> Verify that opening a queue created outside the current scoped domain is
> denied, and that opening a queue created within the same domain remains
> allowed.
>
> Signed-off-by: Oxana Kharitonova <oxana@cloudflare.com>
> ---
> .../landlock/scoped_posix_msg_queue_test.c | 223 ++++++++++++++++++
> .../testing/selftests/landlock/scoped_test.c | 2 +-
> 2 files changed, 224 insertions(+), 1 deletion(-)
> create mode 100644 tools/testing/selftests/landlock/scoped_posix_msg_queue_test.c
>
> diff --git a/tools/testing/selftests/landlock/scoped_posix_msg_queue_test.c b/tools/testing/selftests/landlock/scoped_posix_msg_queue_test.c
> new file mode 100644
> index 000000000000..602ba5c7a83d
> --- /dev/null
> +++ b/tools/testing/selftests/landlock/scoped_posix_msg_queue_test.c
> @@ -0,0 +1,223 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Landlock tests - POSIX message queue scoping
> + *
> + * Copyright © 2024-2026 Microsoft Corporation
You need to update that.
next prev parent reply other threads:[~2026-07-28 11:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 12:29 [PATCH 0/6] landlock: Add POSIX message queue scoping Oxana Kharitonova
2026-07-22 12:29 ` [PATCH 1/6] ipc: Move mqueue fs magic to uapi magic header Oxana Kharitonova
2026-07-22 12:43 ` Günther Noack
2026-07-22 15:14 ` Oxana Kharitonova
2026-07-22 12:29 ` [PATCH 2/6] landlock: Scope POSIX message queue opens Oxana Kharitonova
2026-07-23 21:59 ` Justin Suess
2026-07-28 11:03 ` Mickaël Salaün
2026-07-22 12:29 ` [PATCH 3/6] landlock: Bump ABI for LANDLOCK_SCOPE_POSIX_MSG_QUEUE Oxana Kharitonova
2026-07-28 11:03 ` Mickaël Salaün
2026-07-22 12:29 ` [PATCH 4/6] selftests/landlock: Test POSIX message queue scoping Oxana Kharitonova
2026-07-28 11:04 ` Mickaël Salaün [this message]
2026-07-22 12:29 ` [PATCH 5/6] samples/landlock: Support " Oxana Kharitonova
2026-07-28 11:04 ` Mickaël Salaün
2026-07-22 12:29 ` [PATCH 6/6] landlock: Document " Oxana Kharitonova
2026-07-28 11:02 ` [PATCH 0/6] landlock: Add " Mickaël Salaün
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=20260728.Apei4yai1ea9@digikod.net \
--to=mic@digikod.net \
--cc=gnoack@google.com \
--cc=landlock@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=oxana@cloudflare.com \
--cc=paul@paul-moore.com \
--cc=serge@hallyn.com \
--cc=wangyan01@kylinos.cn \
--cc=webprosto@gmail.com \
/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