Skip to contentSkip to conversation

qemu: enable seccomp if libseccomp is selected

PATCH New Carlos Santos 2 participants 2 messages Nov 25, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 qemu: enable seccomp if libseccomp is selected

It is required to use qemu with libvirt and allows us to resume working on the libvirt package (https://patchwork.ozlabs.org/patch/841613).

---
Supersedes: https://patchwork.ozlabs.org/patch/1000481/
---
Changes v1->v2:
- Do not introduce an explicit option, just enable seccomp support when BR2_PACKAGE_LIBSECCOMP=y.

---
 package/qemu/qemu.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/qemu/qemu.mk +7 -1
index 5ee6abf731..66b74467b9 100644
@@ -81,6 +81,13 @@ else
 QEMU_OPTS += --disable-tools
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
+QEMU_OPTS += --enable-seccomp
+QEMU_DEPENDENCIES += libseccomp
+else
+QEMU_OPTS += --disable-seccomp
+endif
+
 ifeq ($(BR2_PACKAGE_LIBSSH2),y)
 QEMU_OPTS += --enable-libssh2
 QEMU_DEPENDENCIES += libssh2
@@ -121,7 +128,6 @@ define QEMU_CONFIGURE_CMDS
 			--disable-libiscsi \
 			--disable-usb-redir \
 			--disable-strip \
-			--disable-seccomp \
 			--disable-sparse \
 			--disable-mpath \
 			--disable-sanitizers \
Signature · 1 line
2.19.1
#1 lore raw

PATCH v2 1/1 qemu: enable seccomp if libseccomp is selected

Hello,

Quoted 10 lines · Carlos Santos

It is required to use qemu with libvirt and allows us to resume working on the libvirt package (https://patchwork.ozlabs.org/patch/841613).

---
Supersedes: https://patchwork.ozlabs.org/patch/1000481/
---
Changes v1->v2:
- Do not introduce an explicit option, just enable seccomp support when BR2_PACKAGE_LIBSECCOMP=y.

Quoted 3 lines
---
 package/qemu/qemu.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com