From patchwork Fri Oct 30 13:44:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Otubo X-Patchwork-Id: 538328 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 6E739140D5F for ; Sat, 31 Oct 2015 00:45:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=profitbricks_com.20150623.gappssmtp.com header.i=@profitbricks_com.20150623.gappssmtp.com header.b=XLyia0ql; dkim-atps=neutral Received: from localhost ([::1]:50779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsA02-00060H-Mf for incoming@patchwork.ozlabs.org; Fri, 30 Oct 2015 09:45:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs9zM-00058K-S7 for qemu-devel@nongnu.org; Fri, 30 Oct 2015 09:45:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zs9zI-0004bz-Jg for qemu-devel@nongnu.org; Fri, 30 Oct 2015 09:45:04 -0400 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:34408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs9zI-0004bX-De for qemu-devel@nongnu.org; Fri, 30 Oct 2015 09:45:00 -0400 Received: by wikq8 with SMTP id q8so11369034wik.1 for ; Fri, 30 Oct 2015 06:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profitbricks_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BGg8L+I9iS6+GDJ/MPvGtBdmBn2p8MDHA7B0WgSz7jc=; b=XLyia0qldbOO3mfWI80686Wk/nhuWFz59jIwc7NciIQtbwEAhk4mx/3NT4fsV0jE/G BXIMxsXks9B5H6cbN1DMX3WXCwLJdafopaE6/xPkqiLEjbqhVmMRvcwXuzwKhbLRZ9+K xjTKw8j35cFL9U7QfeRi8EUyDOjMjm8lj8Tx5xq1OScwmsruMMFK6wUfjuim+bVQPYiu mYvYG/Fr99zNYl1PRLQDXEW8fw4bCmJWInBPrhqZg+iqkCcCSwm2kmukDbWid9qr21mb vF3jA1FM15F+fFjj2SlON4AaQsdMUjHbCKw9IdAR8omnU92wacbgxRtYzsnZx5FI4Okh dwPw== 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=BGg8L+I9iS6+GDJ/MPvGtBdmBn2p8MDHA7B0WgSz7jc=; b=IZ5jX4SLnkj+dht+ioeHeWjXqrP4YVBiwzqdh8z78itaUlTdh34j7tc7qNfNE0L8VX FkBTSOZ6tDp3aWBQGeKXjb3AtXzdhqEBEGulD6OQnqO2ebGmgBCUiU4LnxSqYFxx4S1D LON67FFKyiM/qXntOkU5EJWV3sP5X/9OzLSZomfp+ZjYZuxl3F9ILpIqSmrTH9EPKVqr pSiUJnIMX28eNNNfJjEipsaty5jLIlInDwrc0+C6mFr8s+eBvVkb9474ZoMVky9wc+O3 wMgyFYAzVMuAumP4w+nvhTOUhWAmLkEGtMvWNTqOMP4vvL/2ZOxlI5k1a8CEbZQpoFMg LONg== X-Gm-Message-State: ALoCoQlEgx5oaANJCSTY/uMMgrDRIT2dsySqDMLMJNTi7gtBGGrR5VK23TJcSaIp2QqTvylN3lS3 X-Received: by 10.194.186.170 with SMTP id fl10mr8638021wjc.91.1446212699900; Fri, 30 Oct 2015 06:44:59 -0700 (PDT) Received: from vader.pb.local ([62.217.45.26]) by smtp.gmail.com with ESMTPSA id gd10sm7121049wjb.47.2015.10.30.06.44.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Oct 2015 06:44:59 -0700 (PDT) From: Eduardo Otubo To: qemu-devel@nongnu.org Date: Fri, 30 Oct 2015 14:44:46 +0100 Message-Id: <1446212690-7656-2-git-send-email-eduardo.otubo@profitbricks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1446212690-7656-1-git-send-email-eduardo.otubo@profitbricks.com> References: <1446212690-7656-1-git-send-email-eduardo.otubo@profitbricks.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::234 Cc: namnamc@safe-mail.net, peter.maydell@linaro.org, drjones@redhat.com, dann.frazier@canonical.com Subject: [Qemu-devel] [PULL 01/05] seccomp: 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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..33644a4 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)