Linux Manual Pages development
 help / color / mirror / Atom feed
From: Tingmao Wang <m@maowtm.org>
To: "Alejandro Colomar" <alx+linux-man@kernel.org>,
	"Mickaël Salaün" <mic@digikod.net>
Cc: "Tingmao Wang" <m@maowtm.org>,
	"Günther Noack" <gnoack3000@gmail.com>,
	linux-man@vger.kernel.org
Subject: [PATCH] man/man2/landlock_add_rule.2: Add a missing EINVAL case
Date: Thu, 19 Nov 2026 17:05:53 +0000	[thread overview]
Message-ID: <20261119170554.224641-1-m@maowtm.org> (raw)

This is another way it can return EINVAL but is not documented.  Documenting
it is useful to help rule out errors.

This syncs this doc with the same change in the kernel [1].

Link: https://lore.kernel.org/linux-security-module/20261116233139.206924-1-m@maowtm.org/ [1]
Signed-off-by: Tingmao Wang <m@maowtm.org>
---
 man/man2/landlock_add_rule.2 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/man/man2/landlock_add_rule.2 b/man/man2/landlock_add_rule.2
index 253498bfa..f6a812c7f 100644
--- a/man/man2/landlock_add_rule.2
+++ b/man/man2/landlock_add_rule.2
@@ -206,6 +206,10 @@ .SH ERRORS
 is not valid.
 .TP
 .B EINVAL
+.I rule_type
+is not valid.
+.TP
+.B EINVAL
 The rule accesses are inconsistent (i.e.,
 .I rule_attr\->allowed_access
 is not a subset of the ruleset handled accesses).
-- 
2.56.1


             reply	other threads:[~2026-11-19 17:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 17:05 Tingmao Wang [this message]
2026-11-19 23:24 ` [PATCH] man/man2/landlock_add_rule.2: Add a missing EINVAL case 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=20261119170554.224641-1-m@maowtm.org \
    --to=m@maowtm.org \
    --cc=alx+linux-man@kernel.org \
    --cc=gnoack3000@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mic@digikod.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