Linux Manual Pages development
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: "Štěpán Němec" <stepnem@smrk.net>
Cc: linux-man@vger.kernel.org, "Günther Noack" <gnoack3000@gmail.com>,
	"Mickaël Salaün" <mic@digikod.net>
Subject: Re: [PATCH 3/3] man/man7/landlock.7: wfix
Date: Sat, 18 Jul 2026 14:17:57 +0200	[thread overview]
Message-ID: <alttHBBoVW2Vej6u@devuan> (raw)
In-Reply-To: <20260713114855Z.2240445002-stepnem@smrk.net>

[-- Attachment #1: Type: text/plain, Size: 3521 bytes --]

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 <stepnem@smrk.net>
> ---
>  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>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2026-07-18 12:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-09 15:34 [PATCH 1/3] man/: tfix Štěpán Němec
2026-07-09 15:34 ` [PATCH 2/3] man/man7/pipe.7: Note kernel commit of the soft limit triggered cap increase Štěpán Němec
2026-07-10 16:46   ` Alejandro Colomar
2026-07-09 15:34 ` [PATCH 3/3] man/man7/landlock.7: wfix Štěpán Němec
2026-07-10 16:48   ` Alejandro Colomar
2026-07-13 11:48     ` Štěpán Němec
2026-07-18 12:17       ` Alejandro Colomar [this message]
2026-07-10 16:44 ` [PATCH 1/3] man/: tfix Alejandro Colomar
2026-07-13 12:11   ` [PATCH] man/man2/memfd_secret.2: tfix Štěpán Němec
2026-07-18 12:08     ` Alejandro Colomar

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=alttHBBoVW2Vej6u@devuan \
    --to=alx@kernel.org \
    --cc=gnoack3000@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mic@digikod.net \
    --cc=stepnem@smrk.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