From patchwork Mon Nov 10 14:21:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Otubo X-Patchwork-Id: 408966 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id EC1CE14012A for ; Tue, 11 Nov 2014 01:25:28 +1100 (AEDT) Received: from localhost ([::1]:43580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnpuI-0007AD-Tj for incoming@patchwork.ozlabs.org; Mon, 10 Nov 2014 09:25:26 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnpqY-0001mc-4I for qemu-devel@nongnu.org; Mon, 10 Nov 2014 09:21:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnpqS-0004dL-Th for qemu-devel@nongnu.org; Mon, 10 Nov 2014 09:21:34 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:46087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnpqS-0004bF-LA for qemu-devel@nongnu.org; Mon, 10 Nov 2014 09:21:28 -0500 Received: by mail-wi0-f171.google.com with SMTP id r20so10575372wiv.4 for ; Mon, 10 Nov 2014 06:21:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WnzeX46scRGORpprcD03akkJt8SxFYabouZI7yfFxss=; b=iaKkFWk1A+MLUF9geKKeHYioF5hJuyEyibYrOpDJF6hmBVqJa87yohmbWKMe0jM2JO wGkeFPHnJB2YKvIafkoB68zqIqNQW4sVdslt1nAP9B+OFXd5wswUUnzzzSSmBw2QgAzP 7sZjpGyqpJ3lvldFbnb1lzHmSopZ4iXqVsnP43upxLqWdiKGgI8qbj22joHQOBkNyjPC V3fwdK4YB+E8kC6GDQxNF1NIKh9MQ1GM9RT8NR5CgOOeC9UsxoJtHgmcT+KjNAY297ff oFS2Li+Xv1y5CicvZ2PhWi0TA06xRGWWvVjkfTonJiUh0PG+Grt5X8kfhyEp6hZjBpbj avtQ== X-Gm-Message-State: ALoCoQlrNzm06vf33axHwSUp4BMqN8BzjMKizCl9EYEgU1vTMYGVs3LF9InhS/W9yKkM2X8jGX1Y X-Received: by 10.194.205.103 with SMTP id lf7mr4343112wjc.134.1415629286209; Mon, 10 Nov 2014 06:21:26 -0800 (PST) Received: from vader.pb.local ([62.217.45.26]) by mx.google.com with ESMTPSA id q10sm23364763wjq.35.2014.11.10.06.21.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Nov 2014 06:21:25 -0800 (PST) From: Eduardo Otubo To: qemu-devel@nongnu.org Date: Mon, 10 Nov 2014 15:21:18 +0100 Message-Id: <1415629278-24675-3-git-send-email-eduardo.otubo@profitbricks.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415629278-24675-1-git-send-email-eduardo.otubo@profitbricks.com> References: <1415629278-24675-1-git-send-email-eduardo.otubo@profitbricks.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.171 Cc: pmoore@redhat.com, peter.maydell@linaro.org, philipp.gesang@intra2net.com, Eduardo Otubo Subject: [Qemu-devel] [PULL 2/2] seccomp: change configure to avoid arm 32 to break X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 2f17bf3..47048f0 100755 --- a/configure +++ b/configure @@ -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"