aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu
diff options
context:
space:
mode:
authorEduardo Otubo <otubo@redhat.com>2017-03-01 23:17:29 +0100
committerEduardo Otubo <otubo@redhat.com>2017-09-15 10:15:05 +0200
commit2b716fa6d63a183a42b789595c3944f53c0ded7c (patch)
treea460580478014b6b51768ba9c2e407c11fff8875 /include/sysemu
parent1bd6152ae23549032ef4aca0d3d350512f012f05 (diff)
seccomp: add obsolete argument to command line
This patch introduces the argument [,obsolete=allow] to the `-sandbox on' option. It allows Qemu to run safely on old system that still relies on old system calls. Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/seccomp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sysemu/seccomp.h b/include/sysemu/seccomp.h
index 23b9c3c789..215138a372 100644
--- a/include/sysemu/seccomp.h
+++ b/include/sysemu/seccomp.h
@@ -16,8 +16,9 @@
#define QEMU_SECCOMP_H
#define QEMU_SECCOMP_SET_DEFAULT (1 << 0)
+#define QEMU_SECCOMP_SET_OBSOLETE (1 << 1)
#include <seccomp.h>
-int seccomp_start(void);
+int seccomp_start(uint32_t seccomp_opts);
#endif