summaryrefslogtreecommitdiff
path: root/include/sysemu/seccomp.h
diff options
context:
space:
mode:
authorEduardo Otubo <otubo@redhat.com>2017-03-13 22:18:51 +0100
committerEduardo Otubo <otubo@redhat.com>2017-09-15 10:15:06 +0200
commit24f8cdc5722476e12d8e39d71f66311b4fa971c1 (patch)
tree46fd71cfaaa2c1632bfce0d683941c15c84970f1 /include/sysemu/seccomp.h
parent995a226f880b807e05240e8752d6ce65679775be (diff)
downloadqemu-24f8cdc5722476e12d8e39d71f66311b4fa971c1.tar.gz
seccomp: add resourcecontrol argument to command line
This patch adds [,resourcecontrol=deny] to `-sandbox on' option. It blacklists all process affinity and scheduler priority system calls to avoid any bigger of the process. Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Diffstat (limited to 'include/sysemu/seccomp.h')
-rw-r--r--include/sysemu/seccomp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/seccomp.h b/include/sysemu/seccomp.h
index 3ab5fc4f61..e67c2dc840 100644
--- a/include/sysemu/seccomp.h
+++ b/include/sysemu/seccomp.h
@@ -19,6 +19,7 @@
#define QEMU_SECCOMP_SET_OBSOLETE (1 << 1)
#define QEMU_SECCOMP_SET_PRIVILEGED (1 << 2)
#define QEMU_SECCOMP_SET_SPAWN (1 << 3)
+#define QEMU_SECCOMP_SET_RESOURCECTL (1 << 4)
#include <seccomp.h>