From 34bb376e954f61adf9b70c84155d06568d161fd9 Mon Sep 17 00:00:00 2001 From: Günther Noack Date: Wed, 19 Apr 2023 20:54:43 +0200 Subject: landlock.7: Return instead of exit() if Landlock is unusable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- man7/landlock.7 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3