diff options
author | Günther Noack <gnoack3000@gmail.com> | 2023-04-19 20:54:43 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-04-19 22:31:49 +0200 |
commit | 34bb376e954f61adf9b70c84155d06568d161fd9 (patch) | |
tree | f8237812cb6cd6f293492accded4d03024df7aa9 | |
parent | abfaf4a953948c45bd6a45a6a9c3283be437c270 (diff) |
landlock.7: Return instead of exit() if Landlock is unusable
When following a best effort approach,
we should not fail when Landlock is unusable,
but we should fall back to doing nothing.
Link: <https://lore.kernel.org/linux-man/5d90e3b0-1577-7efd-03b8-f94b6e50fbc1@digikod.net/>
Suggested-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 7067c058c..b6c9d3821 100644 --- a/man7/landlock.7 +++ b/man7/landlock.7 @@ -451,7 +451,7 @@ if (abi == \-1) { * or Landlock was not enabled at boot time. */ perror("Unable to use Landlock"); - exit(EXIT_FAILURE); + return; /* Graceful fallback: Do nothing. */ } abi = MIN(abi, 3); |