Hi Tingmao, > Date: 2026-11-19 17:05:53+0000 > From: Tingmao Wang > > 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 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 > > --