summary refs log tree commit diff stats
path: root/hw/vfio/platform.c
diff options
context:
space:
mode:
authorYi Min Zhao <zyimin@linux.ibm.com>2018-05-31 11:29:37 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-05-31 19:12:13 +0200
commit0dd693ef1f15b6e9c4ba8b0118663e10338077cf (patch)
tree1d03766cddf38d59d808e9a70b22359749633cd9 /hw/vfio/platform.c
parent5a5c383b1373aeb6c87a0d6060f6c3dc7c53082b (diff)
downloadfocaccia-qemu-0dd693ef1f15b6e9c4ba8b0118663e10338077cf.tar.gz
focaccia-qemu-0dd693ef1f15b6e9c4ba8b0118663e10338077cf.zip
sandbox: disable -sandbox if CONFIG_SECCOMP undefined
If CONFIG_SECCOMP is undefined, the option 'elevateprivileges' 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>
Message-Id: <20180531032937.1925-1-zyimin@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/vfio/platform.c')
0 files changed, 0 insertions, 0 deletions