--- a/engine/sandbox_restrictions.v +++ b/engine/sandbox_restrictions.v @@ -118,6 +118,12 @@ abi := C.v_alpm_landlock_abi() if abi < 0 { + // Vinix has no Landlock syscall. The caller still sets no-new-privs + // and seccomp and drops privileges before it starts the transfer. + if C.errno == C.ENOSYS && os.uname().sysname == 'Vinix' { + handle.log(.debug, 'Landlock is unavailable on this Vinix kernel\n') + return 0 + } problem := os.last_error().msg() handle.log(.error, localized_message('restricting filesystem access failed because Landlock is not supported by the kernel!\n')) return AlpmError{ kind: .retrieve_prepare, detail: 'Landlock is not supported: ${problem}' } }