mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
vmm: allow to call fcntl in debug
This fixes a issue of running vm compiled in debug with Rust 1.80.0 or later, where this check was introduced. Signed-off-by: Wenyu Huang <huangwenyuu@outlook.com>
This commit is contained in:
parent
f63c2d896f
commit
4299815a67
@ -270,6 +270,8 @@ fn virtio_thread_common() -> Vec<(i64, Vec<SeccompRule>)> {
|
||||
(libc::SYS_rt_sigreturn, vec![]),
|
||||
(libc::SYS_sigaltstack, vec![]),
|
||||
(libc::SYS_write, vec![]),
|
||||
#[cfg(debug_assertions)]
|
||||
(libc::SYS_fcntl, vec![]),
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -488,6 +488,8 @@ fn signal_handler_thread_rules() -> Result<Vec<(i64, Vec<SeccompRule>)>, Backend
|
||||
(libc::SYS_sendto, vec![]),
|
||||
(libc::SYS_sigaltstack, vec![]),
|
||||
(libc::SYS_write, vec![]),
|
||||
#[cfg(debug_assertions)]
|
||||
(libc::SYS_fcntl, vec![]),
|
||||
])
|
||||
}
|
||||
|
||||
@ -520,6 +522,8 @@ fn pty_foreground_thread_rules() -> Result<Vec<(i64, Vec<SeccompRule>)>, Backend
|
||||
(libc::SYS_setsid, vec![]),
|
||||
(libc::SYS_sigaltstack, vec![]),
|
||||
(libc::SYS_write, vec![]),
|
||||
#[cfg(debug_assertions)]
|
||||
(libc::SYS_fcntl, vec![]),
|
||||
])
|
||||
}
|
||||
|
||||
@ -802,6 +806,8 @@ fn vcpu_thread_rules(
|
||||
(libc::SYS_unlinkat, vec![]),
|
||||
(libc::SYS_write, vec![]),
|
||||
(libc::SYS_writev, vec![]),
|
||||
#[cfg(debug_assertions)]
|
||||
(libc::SYS_fcntl, vec![]),
|
||||
])
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user