diff options
author | Eduardo Otubo <otubo@redhat.com> | 2017-03-13 22:16:01 +0100 |
---|---|---|
committer | Eduardo Otubo <otubo@redhat.com> | 2017-09-15 10:15:06 +0200 |
commit | 995a226f880b807e05240e8752d6ce65679775be (patch) | |
tree | 52c583395208ab69f6deb0bed685aeb3eefefbe0 /include/sysemu | |
parent | 73a1e647256b09734ce64ef7a6001a0db03f7106 (diff) |
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>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/seccomp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/seccomp.h b/include/sysemu/seccomp.h index 4a9e63c7cd..3ab5fc4f61 100644 --- a/include/sysemu/seccomp.h +++ b/include/sysemu/seccomp.h @@ -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> |