aboutsummaryrefslogtreecommitdiff
path: root/block/io.c
diff options
context:
space:
mode:
authorYi Min Zhao <zyimin@linux.ibm.com>2018-05-31 11:29:37 +0800
committerEduardo Otubo <otubo@redhat.com>2018-06-01 13:44:15 +0200
commit9d0fdecbad130f01b602e35e87c6d3fad5821d6e (patch)
tree82f742cd079629bf6451341a3f377cd93be3d2f5 /block/io.c
parent14fc618461c2756a3f0b16bf6af198c5d7731137 (diff)
downloadqemu-9d0fdecbad130f01b602e35e87c6d3fad5821d6e.zip
qemu-9d0fdecbad130f01b602e35e87c6d3fad5821d6e.tar.gz
qemu-9d0fdecbad130f01b602e35e87c6d3fad5821d6e.tar.bz2
sandbox: disable -sandbox if CONFIG_SECCOMP undefined
If CONFIG_SECCOMP is undefined, the option 'elevatedprivileges' remains compiled. This would make libvirt set the corresponding capability and then trigger failure during guest startup. This patch moves the code regarding seccomp command line options to qemu-seccomp.c file and wraps qemu_opts_foreach finding sandbox option with CONFIG_SECCOMP. Because parse_sandbox() is moved into qemu-seccomp.c file, change seccomp_start() to static function. Signed-off-by: Yi Min Zhao <zyimin@linux.ibm.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Tested-by: Ján Tomko <jtomko@redhat.com> Acked-by: Eduardo Otubo <otubo@redhat.com>
Diffstat (limited to 'block/io.c')
0 files changed, 0 insertions, 0 deletions