mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vhost_user_fs: Add seccomp
Implement seccomp; we use one filter for all threads.
The syscall list comes from the C daemon with syscalls added
as I hit them.
The default behaviour is to kill the process, this normally gets
audit logged.
--seccomp none disables seccomp
log Just logs violations but doesn't stop it
trap causes a signal to be be sent that can be trapped.
If you suspect you're hitting a seccomp action then you can
check the audit log; you could also switch to running with 'log'
to collect a bunch of calls to report.
To see where the syscalls are coming from use 'trap' with a debugger
or coredump to backtrace it.
This can be improved for some syscalls to restrict the parameters
to some syscalls to make them more restrictive.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
6aa29bdb24
commit
4120a7dee9
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -1414,6 +1414,7 @@ dependencies = [
|
||||
"bitflags 1.2.1",
|
||||
"libc",
|
||||
"log 0.4.8",
|
||||
"seccomp",
|
||||
"tempdir",
|
||||
"vhost",
|
||||
"vm-memory",
|
||||
|
||||
Reference in New Issue
Block a user