mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
vmm: seccomp: Allow clock_gettime() on the vCPU thread
If the vCPU thread calls log!() the time difference between the call time and the boot up time is reported. On most environments and architectures this covered by a vDSO call rather than a syscall. However on some platforms this turns into a syscall. Fixes: #2080 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
73612401a5
commit
14af74cb5b
@ -409,6 +409,7 @@ fn vcpu_thread_rules() -> Result<Vec<SyscallRuleSet>, Error> {
|
||||
Ok(vec![
|
||||
allow_syscall(libc::SYS_accept4),
|
||||
allow_syscall(libc::SYS_brk),
|
||||
allow_syscall(libc::SYS_clock_gettime),
|
||||
allow_syscall(libc::SYS_clock_nanosleep),
|
||||
allow_syscall(libc::SYS_clone),
|
||||
allow_syscall(libc::SYS_close),
|
||||
|
Loading…
x
Reference in New Issue
Block a user