seccomp: AArch64: Add SYS_unlinkat to seccomp whitelist

This commit fixes an "Bad syscall" error when shutting down the VM
on AArch64 by adding the SYS_unlinkat syscall to the seccomp
whitelist.

Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
Jianyong Wu 2020-07-24 18:09:16 +08:00 committed by Michael
parent 948cd20bfa
commit d24b110519

View File

@ -330,6 +330,8 @@ pub fn vmm_thread_filter() -> Result<SeccompFilter, Error> {
),
#[cfg(target_arch = "x86_64")]
allow_syscall(libc::SYS_unlink),
#[cfg(target_arch = "aarch64")]
allow_syscall(libc::SYS_unlinkat),
allow_syscall(libc::SYS_wait4),
allow_syscall(libc::SYS_write),
]