mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-23 06:05:21 +00:00
vmm: Add seccomp rules for starting vhost-user-net backend on AArch64
Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
parent
f7b3581645
commit
a95b6bbd8b
@ -276,6 +276,10 @@ fn vmm_thread_rules() -> Result<Vec<SyscallRuleSet>, Error> {
|
|||||||
// The definition of libc::SYS_ftruncate is missing on AArch64.
|
// The definition of libc::SYS_ftruncate is missing on AArch64.
|
||||||
// Use a hard-code number instead.
|
// Use a hard-code number instead.
|
||||||
allow_syscall(46),
|
allow_syscall(46),
|
||||||
|
#[cfg(target_arch = "aarch64")]
|
||||||
|
allow_syscall(libc::SYS_faccessat),
|
||||||
|
#[cfg(target_arch = "aarch64")]
|
||||||
|
allow_syscall(libc::SYS_newfstatat),
|
||||||
allow_syscall(libc::SYS_futex),
|
allow_syscall(libc::SYS_futex),
|
||||||
allow_syscall(libc::SYS_getpid),
|
allow_syscall(libc::SYS_getpid),
|
||||||
allow_syscall(libc::SYS_getrandom),
|
allow_syscall(libc::SYS_getrandom),
|
||||||
|
Loading…
Reference in New Issue
Block a user