Skip to content
Commit 9d0fdecb authored by Yi Min Zhao's avatar Yi Min Zhao Committed by Eduardo Otubo
Browse files

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: default avatarYi Min Zhao <zyimin@linux.ibm.com>
Reviewed-by: default avatarJán Tomko <jtomko@redhat.com>
Tested-by: default avatarJán Tomko <jtomko@redhat.com>
Acked-by: default avatarEduardo Otubo <otubo@redhat.com>
parent 14fc6184
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment