From: "Günther Noack" <gnoack3000@gmail.com>
To: Shi Lecun <shilc2025@mail.sustech.edu.cn>
Cc: "Mickaël Salaün" <mic@digikod.net>,
gnoack@google.com, "Fengwei Zhang" <zhangfw@sustech.edu.cn>,
"Bryam Vargas" <hexlabsecurity@proton.me>,
"Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Randy Dunlap" <rdunlap@infradead.org>,
linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] docs: landlock: clarify F_SETOWN signal scoping
Date: Sun, 8 Nov 2026 17:21:51 +0100 [thread overview]
Message-ID: <20261108.5b4268b47da6@gnoack.org> (raw)
In-Reply-To: <4C69C1457B12AD80+20261108055048.3745750-1-shilc2025@mail.sustech.edu.cn>
On Sun, Nov 08, 2026 at 01:50:48PM +0800, Shi Lecun wrote:
> The signal scope check for asynchronous I/O notifications uses the
> Landlock domain saved when fcntl(F_SETOWN) configures the recipient.
> Adding LANDLOCK_SCOPE_SIGNAL later therefore does not retroactively
> restrict these pre-existing registrations.
>
> Document this boundary in the IPC scoping section and link to the fcntl
> documentation for I/O availability signaling.
>
> Link: https://lore.kernel.org/linux-security-module/20261107.2f1fa9977739@gnoack.org/
> Suggested-by: Günther Noack <gnoack3000@gmail.com>
> Signed-off-by: Shi Lecun <shilc2025@mail.sustech.edu.cn>
> ---
> Documentation/userspace-api/landlock.rst | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/userspace-api/landlock.rst b/Documentation/userspace-api/landlock.rst
> index 3d45b956b640..cc9c5b102b8d 100644
> --- a/Documentation/userspace-api/landlock.rst
> +++ b/Documentation/userspace-api/landlock.rst
> @@ -499,6 +499,10 @@ The operations which can be scoped are:
> This limits the sending of signals to target processes which run within the
> same or a nested Landlock domain.
>
> + For signaling of I/O availability (:manpage:`F_GETSIG(2const)`), Landlock
> + checks are done with respect to the Landlock domain at the time of
> + ``fcntl(F_SETOWN)``.
> +
> ``LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET``
> This limits the set of abstract :manpage:`unix(7)` sockets to which we can
> :manpage:`connect(2)` to socket addresses which were created by a process in
>
> base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
> --
> 2.56.0
>
Reviewed-by: Günther Noack <gnoack3000@gmail.com>
Thanks, looks good!
–Günther
prev parent reply other threads:[~2026-11-08 16:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261107.2f1fa9977739@gnoack.org>
2026-11-08 5:50 ` Shi Lecun
2026-11-08 16:21 ` Günther Noack [this message]
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=20261108.5b4268b47da6@gnoack.org \
--to=gnoack3000@gmail.com \
--cc=corbet@lwn.net \
--cc=gnoack@google.com \
--cc=hexlabsecurity@proton.me \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=mic@digikod.net \
--cc=rdunlap@infradead.org \
--cc=shilc2025@mail.sustech.edu.cn \
--cc=skhan@linuxfoundation.org \
--cc=zhangfw@sustech.edu.cn \
/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
all inboxes | Powered by JetHome®