From 18818341904d7eaa87b33b3b575a91d457779c7c Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 16 May 2025 13:56:56 +0200 Subject: [PATCH] libalpm: Failure to setup Landlock is an error --- lib/libalpm/sandbox_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libalpm/sandbox_fs.c b/lib/libalpm/sandbox_fs.c index f05c06b9..6f01a3fb 100644 --- a/lib/libalpm/sandbox_fs.c +++ b/lib/libalpm/sandbox_fs.c @@ -112,7 +112,7 @@ bool _alpm_sandbox_fs_restrict_writes_to(alpm_handle_t *handle, const char *path if(abi < 0) { /* Landlock is not supported/enabled in the kernel */ _alpm_log(handle, ALPM_LOG_ERROR, _("restricting filesystem access failed because Landlock is not supported by the kernel!\n")); - return true; + return false; } #ifdef LANDLOCK_ACCESS_FS_REFER if(abi < 2) {