From: "Günther Noack" <gnoack@google.com>
To: Alejandro Colomar <alx@kernel.org>
Cc: "Mickaël Salaün" <mic@digikod.net>,
"Tahera Fahimi" <fahimitahera@gmail.com>,
"Tanya Agarwal" <tanyaagarwal25699@gmail.com>,
linux-security-module@vger.kernel.org, linux-man@vger.kernel.org,
"Daniel Burgener" <dburgener@linux.microsoft.com>
Subject: Re: [PATCH v2 1/3] landlock.7: Update description of Landlock rules
Date: Mon, 3 Mar 2025 16:16:47 +0100 [thread overview]
Message-ID: <Z8XCm7yp5SES7RjM@google.com> (raw)
In-Reply-To: <tkuk274p54qgwobzwjah2oj6zm3n4anq7giy4uzhprutjvqz6x@dwpa3h4gekxq>
Hello!
On Fri, Feb 28, 2025 at 10:31:09PM +0100, Alejandro Colomar wrote:
> Hi,
>
> On Wed, Feb 26, 2025 at 10:29:10PM +0100, Günther Noack wrote:
> > This brings it up to date with the wording in the kernel documentation.
> >
> > Signed-off-by: Günther Noack <gnoack@google.com>
>
> I'd like some more justification in the commit message.
Adding that. (linking to matching commit in kernel which introduced this)
>
> > ---
> > man/man7/landlock.7 | 20 ++++++++++++++++----
> > 1 file changed, 16 insertions(+), 4 deletions(-)
> >
> > diff --git a/man/man7/landlock.7 b/man/man7/landlock.7
> > index c6b7272ea..11f76b072 100644
> > --- a/man/man7/landlock.7
> > +++ b/man/man7/landlock.7
> > @@ -39,13 +39,25 @@ the running kernel must support Landlock and
> > it must be enabled at boot time.
> > .\"
> > .SS Landlock rules
> > -A Landlock rule describes an action on an object.
> > -An object is currently a file hierarchy,
> > -and the related filesystem actions are defined with access rights (see
> > -.BR landlock_add_rule (2)).
> > +A Landlock rule describes an action on an object
> > +which the process intends to perform.
> > A set of rules is aggregated in a ruleset,
> > which can then restrict the thread enforcing it,
> > and its future children.
> > +.P
> > +The two existing types of rules are:
> > +.P
>
> This will trigger a diagnostic due to being redundant before TP.
>
> (Both P and TP are paragraphing macros, so you're theoretically creating
> an empty paragraph, which is just ignored by groff(1).)
Thanks, fixed.
> > +.TP
> > +.B Filesystem rules
> > +For these rules, the object is a file hierarchy,
> > +and the related filesystem actions are defined with
> > +.IR "filesystem access rights" .
> > +.TP
> > +.B Network rules (since ABI v4)
>
> Most of the pages use Roman for the parenthetical:
>
> $ grep -rn 'BR.*(since' | sort -R | head
> man7/ip.7:782:.BR IP_PKTINFO " (since Linux 2.2)"
> man2/set_mempolicy.2:109:.BR MPOL_F_STATIC_NODES " (since Linux 2.6.26)"
> man2/kexec_load.2:60:.BR KEXEC_PRESERVE_CONTEXT " (since Linux 2.6.27)"
> man2/perf_event_open.2:823:.BR PERF_SAMPLE_REGS_USER " (since Linux 3.7)"
> man2/perf_event_open.2:1522:.BR PERF_SAMPLE_BRANCH_COND " (since Linux 3.16)"
> man7/socket.7:998:.BR SO_TIMESTAMPNS " (since Linux 2.6.22)"
> man2/perf_event_open.2:1537:.BR PERF_SAMPLE_BRANCH_CALL_STACK " (since Linux 4.1)"
> man2/clone.2:1303:.BR EINVAL " (since Linux 3.9)"
> man2/eventfd.2:52:.BR EFD_NONBLOCK " (since Linux 2.6.27)"
> man2/perf_event_open.2:912:.BR PERF_SAMPLE_CGROUP " (since Linux 5.7)"
>
> > +For these rules, the object is a TCP port,
> > +and the related actions are defined with
> > +.IR "network access rights" .
> > +.BR landlock_add_rule (2)).
Removing this stray last line as well, which was left over from an earlier
version of the text.
—Günther
next prev parent reply other threads:[~2025-03-03 15:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-26 21:18 [PATCH v2 0/1] landlock: Clarify IPC scoping documentation Günther Noack
2025-02-26 21:18 ` [PATCH v2 1/1] " Günther Noack
2025-02-26 21:29 ` [PATCH v2 1/3] landlock.7: Update description of Landlock rules Günther Noack
2025-02-26 21:40 ` Günther Noack
2025-02-28 21:31 ` Alejandro Colomar
2025-03-03 15:16 ` Günther Noack [this message]
2025-02-26 21:29 ` [PATCH v2 2/3] landlock.7: Move over documentation for ABI version 6 Günther Noack
2025-02-28 21:23 ` Alejandro Colomar
2025-03-03 16:24 ` Günther Noack
2025-03-03 18:30 ` Alejandro Colomar
2025-02-26 21:29 ` [PATCH v2 3/3] landlock.7: Clarify IPC scoping documentation in line with kernel side Günther Noack
2025-02-28 21:37 ` Alejandro Colomar
2025-03-03 16:36 ` Günther Noack
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=Z8XCm7yp5SES7RjM@google.com \
--to=gnoack@google.com \
--cc=alx@kernel.org \
--cc=dburgener@linux.microsoft.com \
--cc=fahimitahera@gmail.com \
--cc=linux-man@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=mic@digikod.net \
--cc=tanyaagarwal25699@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;
as well as URLs for NNTP newsgroup(s).