aboutsummaryrefslogtreecommitdiff
path: root/qemu-config.c
diff options
context:
space:
mode:
authorEduardo Otubo <otubo@linux.vnet.ibm.com>2012-08-14 18:44:08 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2012-08-16 13:41:16 -0500
commit7d76ad4fa4405bb20c35fd24c3c848d2bc48f694 (patch)
tree647c18a62aa16508fcb15b2a61bd91de3bee3c36 /qemu-config.c
parent452dfbef600837c0e430564ea9e35138ef48f24c (diff)
downloadqemu-7d76ad4fa4405bb20c35fd24c3c848d2bc48f694.zip
qemu-7d76ad4fa4405bb20c35fd24c3c848d2bc48f694.tar.gz
qemu-7d76ad4fa4405bb20c35fd24c3c848d2bc48f694.tar.bz2
Command line support for seccomp with -sandbox (v8)
Signed-off-by: Eduardo Otubo <otubo@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> --- v7 -> v8 - Parse options correctly (aliguori)
Diffstat (limited to 'qemu-config.c')
-rw-r--r--qemu-config.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c
index 6700de0..c05ffbc 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -362,6 +362,19 @@ static QemuOptsList qemu_global_opts = {
},
};
+QemuOptsList qemu_sandbox_opts = {
+ .name = "sandbox",
+ .implied_opt_name = "enable",
+ .head = QTAILQ_HEAD_INITIALIZER(qemu_sandbox_opts.head),
+ .desc = {
+ {
+ .name = "enable",
+ .type = QEMU_OPT_BOOL,
+ },
+ { /* end of list */ }
+ },
+};
+
static QemuOptsList qemu_mon_opts = {
.name = "mon",
.implied_opt_name = "chardev",
@@ -645,6 +658,7 @@ static QemuOptsList *vm_config_groups[32] = {
&qemu_machine_opts,
&qemu_boot_opts,
&qemu_iscsi_opts,
+ &qemu_sandbox_opts,
NULL,
};