From: Günther Noack Date: Wed, 19 Apr 2023 18:54:43 +0000 (+0200) Subject: landlock.7: Return instead of exit() if Landlock is unusable X-Git-Tag: man-pages-6.05~167 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34bb376e954f61adf9b70c84155d06568d161fd9;p=thirdparty%2Fman-pages.git 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: Suggested-by: Mickaël Salaün Signed-off-by: Günther Noack Signed-off-by: Alejandro Colomar --- diff --git a/man7/landlock.7 b/man7/landlock.7 index 7067c058c8..b6c9d3821c 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);