libalpm: Failure to setup Landlock is an error

This commit is contained in:
Remi Gacogne 2025-05-16 13:56:56 +02:00
parent 46504eea65
commit 1881834190
No known key found for this signature in database
GPG key ID: 40825C6BDD1A4146

View file

@ -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) {