diff options
| author | Günther Noack <gnoack@google.com> | 2024-07-19 13:38:00 +0000 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-07-22 22:57:41 +0200 |
| commit | de4c70cf7881aec87b1af0e4c324f20d42b72d7c (patch) | |
| tree | f28e1df02b2b95faa4a7b3ee6b4693cfd3b93c7c | |
| parent | be64e5913e793ee0ecb999f26bc79d32ea465c2c (diff) | |
| download | man-pages-de4c70cf7881aec87b1af0e4c324f20d42b72d7c.tar.gz | |
landlock_add_rule.2: ERRORS: Document missing reason for EINVAL
This documents a missing reason for why EINVAL might be returned.
The documented behavior exists since the first version of Landlock.
Reviewed-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Günther Noack <gnoack@google.com>
Message-ID: <20240719133801.3541732-5-gnoack@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man2/landlock_add_rule.2 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/man/man2/landlock_add_rule.2 b/man/man2/landlock_add_rule.2 index fa0b1f109d..7a83bb3035 100644 --- a/man/man2/landlock_add_rule.2 +++ b/man/man2/landlock_add_rule.2 @@ -101,6 +101,16 @@ The rule accesses are inconsistent (i.e., .I rule_attr\->allowed_access is not a subset of the ruleset handled accesses). .TP +.B EINVAL +In +.IR \%struct\~landlock_path_beneath_attr , +the rule accesses are not applicable to the file +(i.e., some access rights in +.I \%rule_attr\->allowed_access +are only applicable to directories, but +.I \%rule_attr\->parent_fd +does not refer to a directory). +.TP .B ENOMSG Empty accesses (i.e., .I rule_attr\->allowed_access |
