Skip to contentSkip to conversation

man/man2/landlock_add_rule.2: Add a missing EINVAL case

PATCH In review Tingmao Wang 2 participants 2 messages Nov 19 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 man/man2/landlock_add_rule.2: Add a missing EINVAL case

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].

---
 man/man2/landlock_add_rule.2 | 4 ++++
 1 file changed, 4 insertions(+)
man/man2/landlock_add_rule.2 +4 -0
index 253498bfa..f6a812c7f 100644
@@ -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).
Signature · 1 line
2.56.1
#1 lore raw

Hi Tingmao,

Quoted 10 lines

Date: 2026-11-19 17:05:53+0000
From: Tingmao Wang <[email protected]>

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].

Thanks! I've applied the patch.

Have a lovely night!
Alex

Quoted 23 lines
---
 man/man2/landlock_add_rule.2 | 4 ++++
 1 file changed, 4 insertions(+)
man/man2/landlock_add_rule.2 +4 -0
index 253498bfa..f6a812c7f 100644
@@ -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).
Signature · 1 line
2.56.1
Signature · 1 line
<https://www.alejandro-colomar.es>