* [PATCH] docs: landlock: clarify F_SETOWN signal scoping
[not found] <20261107.2f1fa9977739@gnoack.org>
@ 2026-11-08 5:50 ` Shi Lecun
2026-11-08 16:21 ` Günther Noack
0 siblings, 1 reply; 2+ messages in thread
From: Shi Lecun @ 2026-11-08 5:50 UTC (permalink / raw)
To: Günther Noack, Mickaël Salaün
Cc: gnoack, Fengwei Zhang, Bryam Vargas, Jonathan Corbet, Shuah Khan,
Randy Dunlap, linux-security-module, linux-doc, linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] docs: landlock: clarify F_SETOWN signal scoping
2026-11-08 5:50 ` [PATCH] docs: landlock: clarify F_SETOWN signal scoping Shi Lecun
@ 2026-11-08 16:21 ` Günther Noack
0 siblings, 0 replies; 2+ messages in thread
From: Günther Noack @ 2026-11-08 16:21 UTC (permalink / raw)
To: Shi Lecun
Cc: Mickaël Salaün, gnoack, Fengwei Zhang, Bryam Vargas,
Jonathan Corbet, Shuah Khan, Randy Dunlap, linux-security-module,
linux-doc, linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-08 16:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20261107.2f1fa9977739@gnoack.org>
2026-11-08 5:50 ` [PATCH] docs: landlock: clarify F_SETOWN signal scoping Shi Lecun
2026-11-08 16:21 ` Günther Noack
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®