Linux Manual Pages development
 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

* Re: [PATCH] man/man2/landlock_add_rule.2: Add a missing EINVAL case
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar @ 2026-11-19 23:24 UTC (permalink / raw)
  To: Tingmao Wang; +Cc: Mickaël Salaün, Günther Noack, linux-man

[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]

Hi Tingmao,

> Date: 2026-11-19 17:05:53+0000
> From: Tingmao Wang <m@maowtm.org>
>
> 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>

Thanks!  I've applied the patch.


Have a lovely night!
Alex

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

-- 
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox