diff options
author | Günther Noack <gnoack3000@gmail.com> | 2023-04-19 20:54:40 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-04-19 22:31:48 +0200 |
commit | c4c56409c9ab3a7415e5cf472135f519f7de6082 (patch) | |
tree | 4396053c547e68f213e630f8bf6743cf31530000 | |
parent | 6693a21cf73c502f2429b4ec07698130a2be9a93 (diff) |
landlock.7: Check syscall result with == -1 instead of <= 0
Link: <https://lore.kernel.org/linux-man/5d90e3b0-1577-7efd-03b8-f94b6e50fbc1@digikod.net/>
Reported-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r-- | man7/landlock.7 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man7/landlock.7 b/man7/landlock.7 index 16feef42c..fc4a95031 100644 --- a/man7/landlock.7 +++ b/man7/landlock.7 @@ -445,7 +445,7 @@ __u64 landlock_fs_access_rights[] = { int abi = landlock_create_ruleset(NULL, 0, LANDLOCK_CREATE_RULESET_VERSION); -if (abi <= 0) { +if (abi == \-1) { /* * Kernel too old, not compiled with Landlock, * or Landlock was not enabled at boot time. |