Re: [PATCH 3/3] man/man7/landlock.7: wfix

Alejandro Colomar <[email protected]> Sat, 18 Jul 2026 14:17:57 +0200
Newsgroups org.kernel.vger.linux-man
Message-ID <alttHBBoVW2Vej6u@devuan>
Hi Štěpán,

On 2026-07-13T13:48:55+0200, Štěpán Němec wrote:
> On Fri, 10 Jul 2026 18:48:36 +0200 Alejandro Colomar wrote:
[...]
> > I've added to CC the landlock maintainers, so that they review the text.
> > They maintain the same text in the kernel, so it's better to have it
> > coordinated.
> 
> Thanks, I did not realize that.
> 
> I see now that the texts have already diverged and the
> equivalent paragraph in the kernel docs
> (Documentation/userspace-api/landlock.rst) now reads
> 
>   Each time a thread enforces a ruleset on itself, it updates its Landlock domain
>   with a new layer of policy.  This complementary policy is stacked with any
>   other rulesets potentially already restricting this thread.  A sandboxed thread
>   can then safely add more constraints to itself with a new enforced ruleset.
> 
> (Wording introduced by linux commit dad2f2071516
> (2024-10-15; "landlock: Fix grammar issues in documentation").)
> 
> FWIW I see little point in this kind of duplication, given
> that the kernel docs are as readily available to anyone
> interested as the man pages are;

Not so much; the manual pages are available for anyone on a terminal
without internet connection.  The kernel docs are only available if you
have the kernel sources or internet.

So, the manual pages are necessary.  What I wonder is if the kernel
documentation is necessary.  I think they could drop it (the duplicated
part of it), and refer to the manual page.  However, I trust they know
what's best for them.

> OTOH it seems that the
> duplication is only partial here (i.e., the documents
> differ, with only isolated verbatim overlaps), so perhaps
> the rationale is that the different documents target
> slightly different audiences (I'm not sure I'd agree).

Yup; still, referring to the manual pages instead of duplicating that
part in the kernel might (or might not) be a good idea.

> Anyway, here is a patch simply adjusting the man page text
> to match the kernel docs (I still believe "potentially" is
> more distracting than useful there, but it is an improvement
> on the original.):

Thanks!  This sounds like an improvement that doesn't need to be
reviewed by the kernel maintainers.  I've applied it.


Cheers,
Alex

> 
> ----------------------------------- 8< --------------------------------
> Subject: [PATCH] man/man7/landlock.7: wfix
> 
> Use the current wording of the equivalent paragraph in
> Linux kernel Documentation/userspace-api/landlock.rst.
> 
> Signed-off-by: Štěpán Němec <[email protected]>
> ---
>  man/man7/landlock.7 | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/man/man7/landlock.7 b/man/man7/landlock.7
> index 293374ed9b46..f0a9b6db4bc8 100644
> --- a/man/man7/landlock.7
> +++ b/man/man7/landlock.7
> @@ -296,8 +296,8 @@ .SS Scope flags
>  .SS Layers of file path access rights
>  Each time a thread enforces a ruleset on itself,
>  it updates its Landlock domain with a new layer of policy.
> -Indeed, this complementary policy is composed with the
> -potentially other rulesets already restricting this thread.
> +This complementary policy is stacked with any
> +other rulesets potentially already restricting this thread.
>  A sandboxed thread can then safely add more constraints to itself with a
>  new enforced ruleset.
>  .P
> 
> base-commit: 794e74fd54156f767801eb60a0d79a496c73e505
> -- 
> 2.55.0

-- 
<https://www.alejandro-colomar.es>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmpbbvUACgkQ64mZXMKQ
wqlJcRAAl7q+nY//hgLIXQL5uTUcJAWAIjNNeEhQOP+Rhcs1V1VupNGN/j9bSSw7
C5/wvp3SGGaKhgvvdctdHK/GKGi6+fnPnOtq8uQErFsliYzvHij/LhPNOqVmYJSF
FEtAiuXa6MSgk7D6pYuQwmJb7bkoOUfzxZwFh4kuuCjJs9DJhNgwG2GeUivdSY3W
bccKL5W0KxNa0x8+xYR4QvoeIvbbCsQpiadwf10Ln4anYGGcBQdwl5O/Zb17WEw+
EcfAas8vZ/6wb6CWRBkDjSz8V3WxAxbvmizHTLBqncHxW06Ng237qQ2c2r6MYcbL
wfs+3/rAPIrPaz5PpwzolMIhGHLu86P+7ZyjX7Tqi2xSMG+FH0QKCMDvSmMC9Dqy
NSYPotrG/7b3zB2AxST7zXX0HKEcQf+Ty/jcAXfTOsSoXx//oz2yucpMhnHYYdLn
3vUpfchrNE9o+0Mw8+Pyyf6PMI0Hxer1WagTMg0RCCDPsGye57o+KuIQjW6csGnP
oJ5V2Vy3B6RCRz0EdL6/jfcFNBUFYXpliKM971H83C0Lzsq7C9NukjsWI8QKqVn0
9HJz7ZOxx+YUBBOwEyqt9RccrQOEiqwDV0SBaDVBbKU89x00UYlH7d9jepmfe+06
efanAaeriNmk2HaZ1imOEfBFx0ZHvNoCpvk/4stNZAO6hibtv/Q=
=l9Iu
-----END PGP SIGNATURE-----