Skip to content

Commit

Permalink
vmm: add syscalls to seccomp filters for sending SIGTERM
Browse files Browse the repository at this point in the history
Add lstat and getcwd to allowed seccomp filter list since they
 are called in libc::kill.

Signed-off-by: Songqian Li <sionli@tencent.com>
  • Loading branch information
Songqian Li committed Jun 11, 2024
1 parent b020ed7 commit 2904dc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vmm/src/seccomp_filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,9 @@ fn vmm_thread_rules(
(libc::SYS_wait4, vec![]),
(libc::SYS_write, vec![]),
(libc::SYS_writev, vec![]),
#[cfg(target_arch = "x86_64")]
(libc::SYS_lstat, vec![]),
(libc::SYS_getcwd, vec![]),
])
}

Expand Down

0 comments on commit 2904dc0

Please sign in to comment.