diff options
author | Eduardo Otubo <eduardo.otubo@profitbricks.com> | 2014-11-07 10:05:44 +0100 |
---|---|---|
committer | Eduardo Otubo <eduardo.otubo@profitbricks.com> | 2014-11-11 17:05:21 +0100 |
commit | 4cc47f8b3cc4f32586ba2f7fce1dc267da774a69 (patch) | |
tree | 4378b7f00a6d47d8af2e28fc7889d195440ba7b4 /configure | |
parent | f73adec7097ebdbc7168453e638735391a6f7112 (diff) | |
download | hqemu-4cc47f8b3cc4f32586ba2f7fce1dc267da774a69.zip hqemu-4cc47f8b3cc4f32586ba2f7fce1dc267da774a69.tar.gz |
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
Signed-off-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" |