man/man2/landlock_add_rule.2: Add a missing EINVAL case
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].
Signed-off-by Tingmao Wang <[email protected]>
--- man/man2/landlock_add_rule.2 | 4 ++++ 1 file changed, 4 insertions(+)
man/man2/landlock_add_rule.2 +4 -0
@@ -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
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@@ -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>