All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] man/man2/landlock_add_rule.2: Add a missing EINVAL case
@ 2026-11-19 17:05 Tingmao Wang
  2026-11-19 23:24 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Tingmao Wang @ 2026-11-19 17:05 UTC (permalink / raw)
  To: Alejandro Colomar, Mickaël Salaün
  Cc: Tingmao Wang, Günther Noack, linux-man

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-19 23:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 17:05 [PATCH] man/man2/landlock_add_rule.2: Add a missing EINVAL case Tingmao Wang
2026-11-19 23:24 ` Alejandro Colomar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.