mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
seccomp: add spawn argument to command line
This patch adds [,spawn=deny] argument to `-sandbox on' option. It blacklists fork and execve system calls, avoiding Qemu to spawn new threads or processes. Signed-off-by: Eduardo Otubo <otubo@redhat.com>
This commit is contained in:
parent
73a1e64725
commit
995a226f88
4 changed files with 28 additions and 2 deletions
|
@ -18,6 +18,7 @@
|
|||
#define QEMU_SECCOMP_SET_DEFAULT (1 << 0)
|
||||
#define QEMU_SECCOMP_SET_OBSOLETE (1 << 1)
|
||||
#define QEMU_SECCOMP_SET_PRIVILEGED (1 << 2)
|
||||
#define QEMU_SECCOMP_SET_SPAWN (1 << 3)
|
||||
|
||||
#include <seccomp.h>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue