aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Noack <gnoack@google.com>2024-07-19 13:38:00 +0000
committerAlejandro Colomar <alx@kernel.org>2024-07-22 22:57:41 +0200
commitde4c70cf7881aec87b1af0e4c324f20d42b72d7c (patch)
treef28e1df02b2b95faa4a7b3ee6b4693cfd3b93c7c
parentbe64e5913e793ee0ecb999f26bc79d32ea465c2c (diff)
downloadman-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.210
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