mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-07-16 14:17:16 +00:00
vmm: Add missing syscalls to signal thread
When the VMM is terminated by receiving a SIGTERM signal, the signal handler thread must be able to invoke ioctl(TCGETS) and ioctl(TCSETS) without error. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
41a9b1adef
commit
555c5c5d9c
@ -240,7 +240,11 @@ fn create_api_ioctl_seccomp_rule() -> Result<Vec<SeccompRule>, Error> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn create_signal_handler_ioctl_seccomp_rule() -> Result<Vec<SeccompRule>, Error> {
|
fn create_signal_handler_ioctl_seccomp_rule() -> Result<Vec<SeccompRule>, Error> {
|
||||||
Ok(or![and![Cond::new(1, ArgLen::DWORD, Eq, TIOCGWINSZ)?],])
|
Ok(or![
|
||||||
|
and![Cond::new(1, ArgLen::DWORD, Eq, TCGETS)?],
|
||||||
|
and![Cond::new(1, ArgLen::DWORD, Eq, TCSETS)?],
|
||||||
|
and![Cond::new(1, ArgLen::DWORD, Eq, TIOCGWINSZ)?],
|
||||||
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
fn signal_handler_thread_rules() -> Result<Vec<SyscallRuleSet>, Error> {
|
fn signal_handler_thread_rules() -> Result<Vec<SyscallRuleSet>, Error> {
|
||||||
|
Loading…
Reference in New Issue
Block a user