seccomp branch queue
The following changes since commit 14fc618461c2756a3f0b16bf6af198c5d7731137:
Merge remote-tracking branch 'remotes/sstabellini-http/tags/xen-20180531-tag' into staging (2018-06-01 10:16:49 +0100)
are available in the Git repository at:
https://github.com/otubo/qemu.git tags/pull-seccomp-20180601
for you to fetch changes up to 4e488581de463218be39cff97530294534c9e85b
seccomp: disable -sandbox if CONFIG_SECCOMP undefined (2018-06-01 13:44:15 +0200)
----------------------------------------------------------------
pull-seccomp-20180601
----------------------------------------------------------------
Yi Min Zhao (1):
seccomp: disable -sandbox if CONFIG_SECCOMP undefined
include/sysemu/seccomp.h | 3 +- qemu-seccomp.c | 121 ++++++++++++++++++++++++++++++++++++++++++++- vl.c | 124 +++-------------------------------------------- 3 files changed, 130 insertions(+), 118 deletions(-)
Signature · 1 line
2.17.0
[Qemu-devel] [PULL 01/01] seccomp: disable -sandbox if CONFIG_SECCOMP undefined
From: Yi Min Zhao <[email protected]>
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.
--- include/sysemu/seccomp.h | 3 +- qemu-seccomp.c | 121 +++++++++++++++++++++++++++++++++++++- vl.c | 124 +++------------------------------------ 3 files changed, 130 insertions(+), 118 deletions(-)
include/sysemu/seccomp.h +2 -1
@@ -21,5 +21,6 @@#define QEMU_SECCOMP_SET_SPAWN (1 << 3)#define QEMU_SECCOMP_SET_RESOURCECTL (1 << 4) -int seccomp_start (uint32_t seccomp_opts); +int parse_sandbox (void *opaque,QemuOpts *opts,Error **errp); +#endif
qemu-seccomp.c +120 -1
136 lines not on this page · raw message
vl.c +8 -116
170 lines not on this page · raw message
Signature · 1 line
2.17.0
Peter Maydell
AppliedQuoted 15 lines · Eduardo Otubo
The following changes since commit
14fc618461c2756a3f0b16bf6af198c5d7731137:Merge remote-tracking branch 'remotes/sstabellini-http/tags/xen-20180531-tag' into staging (2018-06-01 10:16:49 +0100)
are available in the Git repository at:
https://github.com/otubo/qemu.git tags/pull-seccomp-20180601
for you to fetch changes up to
4e488581de463218be39cff97530294534c9e85bseccomp: disable -sandbox if
CONFIG_SECCOMPundefined (2018-06-01 13:44:15 +0200)----------------------------------------------------------------
pull-seccomp-20180601
Quoted 9 lines
----------------------------------------------------------------
Yi Min Zhao (1):
seccomp: disable -sandbox ifCONFIG_SECCOMPundefinedinclude/sysemu/seccomp.h | 3 +- qemu-seccomp.c | 121 ++++++++++++++++++++++++++++++++++++++++++++- vl.c | 124 +++-------------------------------------------- 3 files changed, 130 insertions(+), 118 deletions(-)
Applied, thanks.
-- PMM