From patchwork Wed Oct 14 09:38:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Otubo X-Patchwork-Id: 54898 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 898F820490 for ; Wed, 14 Oct 2015 09:44:06 +0000 (UTC) Received: by lbbti1 with SMTP id ti1sf22895841lbb.3 for ; Wed, 14 Oct 2015 02:44:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=sVgUpuDYjspWTJ6gU77fOCNWc377NUMFIxDPEe0J/z0=; b=dOyrloHRPjKpwfNUaeHHejgcqCrlXo4RZv7g0yxJtYToHooKuI8YUfEFjyfD+kPgk/ hoslN29riVY3xMMp62Rfigst2wCcn878FVuSrHndFJJuuNv8Gla21D8FD+qh9Lwr10VC Kc7AW/vVfg77bp7mBCxQoS2/WzQ1hBpXLw/YQNG6OY5nkXTq4EiR8jMPW07nqb8BiQO1 pf9kuGHDq1Girdu7UHYgX6ODywZxsqHYNGVsPMK6O0AZnA+G26wffSGibcfX4//XHj73 Ul00tRodpgtFRFOr7aE3GUkKBfW0ej/wTmzSoNyAqIxa2QE9gb73h3MUN8GCttZ1n/+G bp7Q== X-Gm-Message-State: ALoCoQnvz+yahK8gE341Qp+nSd0cbLKLWQRoCRwNeBvb1K5mDDGcQS/PjlZXjMAtSoLDdrH/Dpcu X-Received: by 10.194.156.193 with SMTP id wg1mr517595wjb.3.1444815845525; Wed, 14 Oct 2015 02:44:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.145.132 with SMTP id t126ls18441lfd.89.gmail; Wed, 14 Oct 2015 02:44:05 -0700 (PDT) X-Received: by 10.112.135.9 with SMTP id po9mr1088619lbb.56.1444815845361; Wed, 14 Oct 2015 02:44:05 -0700 (PDT) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id mt6si4995977lbb.32.2015.10.14.02.44.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Oct 2015 02:44:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lfaz124 with SMTP id z124so8392930lfa.1 for ; Wed, 14 Oct 2015 02:44:05 -0700 (PDT) X-Received: by 10.25.210.206 with SMTP id j197mr708509lfg.86.1444815845233; Wed, 14 Oct 2015 02:44:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp2616118lbq; Wed, 14 Oct 2015 02:44:04 -0700 (PDT) X-Received: by 10.140.32.247 with SMTP id h110mr2631304qgh.1.1444815844140; Wed, 14 Oct 2015 02:44:04 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 21si7055339qhq.15.2015.10.14.02.44.03 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 14 Oct 2015 02:44:04 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:41366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmIbL-0001PW-Pe for patch@linaro.org; Wed, 14 Oct 2015 05:44:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmIWX-0005d7-3Q for qemu-devel@nongnu.org; Wed, 14 Oct 2015 05:39:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmIWR-0007X2-7C for qemu-devel@nongnu.org; Wed, 14 Oct 2015 05:39:05 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:33874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmIWR-0007WR-0o for qemu-devel@nongnu.org; Wed, 14 Oct 2015 05:38:59 -0400 Received: by wicgb1 with SMTP id gb1so122133768wic.1 for ; Wed, 14 Oct 2015 02:38:58 -0700 (PDT) X-Received: by 10.180.86.129 with SMTP id p1mr3310392wiz.83.1444815538092; Wed, 14 Oct 2015 02:38:58 -0700 (PDT) Received: from vader.pb.local ([62.217.45.26]) by smtp.gmail.com with ESMTPSA id xt1sm8845960wjb.32.2015.10.14.02.38.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Oct 2015 02:38:57 -0700 (PDT) From: Eduardo Otubo To: qemu-devel@nongnu.org Date: Wed, 14 Oct 2015 11:38:23 +0200 Message-Id: <1444815506-30087-2-git-send-email-eduardo.otubo@profitbricks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444815506-30087-1-git-send-email-eduardo.otubo@profitbricks.com> References: <1444815506-30087-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.172 Cc: namnamc@safe-mail.net, peter.maydell@linaro.org, drjones@redhat.com Subject: [Qemu-devel] [PULL 01/04] libseccomp: add cacheflush to whitelist 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: eduardo.otubo@profitbricks.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Andrew Jones cacheflush is an arm-specific syscall that qemu built for arm uses. Add it to the whitelist. Signed-off-by: Andrew Jones Acked-by: Eduardo Otubo --- qemu-seccomp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemu-seccomp.c b/qemu-seccomp.c index f9de0d3..581a5e1 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -237,7 +237,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(fadvise64), 240 }, { SCMP_SYS(inotify_init1), 240 }, { SCMP_SYS(inotify_add_watch), 240 }, - { SCMP_SYS(mbind), 240 } + { SCMP_SYS(mbind), 240 }, + { SCMP_SYS(cacheflush), 240 } }; int seccomp_start(void)