mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
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:
parent
948cd20bfa
commit
d24b110519
@ -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),
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user