Skip to contentSkip to conversation

seccomp: change configure to avoid arm 32 to break

PATCH In review Eduardo Otubo 3 participants 3 messages Nov 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 seccomp: change configure to avoid arm 32 to break

Current stable version of libseccomp (2.1.1) only supports i386 and x86_64 archs correctly. This patch limits the usage of the syscall filter for those archs and updates to the correct last version of libseccomp.

This patch also fixes the bug:
https://bugs.launchpad.net/qemu/+bug/1363641

---
 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
configure +2 -1
index 2f17bf3..47048f0 100755
@@ -1823,7 +1823,8 @@ fi
 # libseccomp check
 
 if test "$seccomp" != "no" ; then
-    if $pkg_config --atleast-version=2.1.0 libseccomp; then
+    if test "$cpu" = "i386" || test "$cpu" = "x86_64" &&
+        $pkg_config --atleast-version=2.1.1 libseccomp; then
         libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
         QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
 	seccomp="yes"
Signature · 1 line
1.9.1
Acked-by on v3 1/1
#2 lore raw
In reply to Eduardo Otubo
Quoted 5 lines · Eduardo Otubo

Current stable version of libseccomp (2.1.1) only supports i386 and x86_64 archs correctly. This patch limits the usage of the syscall filter for those archs and updates to the correct last version of libseccomp.

Quoted 7 lines

This patch also fixes the bug:
https://bugs.launchpad.net/qemu/+bug/1363641

---
 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Thanks Eduardo, I'll let you know once I've cut a new release of libseccomp.

Quoted 14 lines
configure +2 -1
index 2f17bf3..47048f0 100755
@@ -1823,7 +1823,8 @@ fi
 # libseccomp check
 
 if test "$seccomp" != "no" ; then
-    if $pkg_config --atleast-version=2.1.0 libseccomp; then
+    if test "$cpu" = "i386" || test "$cpu" = "x86_64" &&
+        $pkg_config --atleast-version=2.1.1 libseccomp; then
         libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
         QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
 	seccomp="yes"
Signature · 2 lines
paul moore
security and virtualization @ redhat