libalpm: Add an error message for seccomp setup failures

This commit is contained in:
Remi Gacogne 2025-05-16 14:01:20 +02:00
parent 1881834190
commit 6816aeae17
No known key found for this signature in database
GPG key ID: 40825C6BDD1A4146

View file

@ -136,6 +136,7 @@ bool _alpm_sandbox_syscalls_filter(alpm_handle_t *handle)
scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW); scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW);
int restrictedSyscallsCount = 0; int restrictedSyscallsCount = 0;
if(ctx == NULL) { if(ctx == NULL) {
_alpm_log(handle, ALPM_LOG_ERROR, _("error initializing seccomp to filter system calls in the download sandbox!\n"));
return false; return false;
} }