From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amztE-0008KC-T4 for qemu-devel@nongnu.org; Mon, 04 Apr 2016 04:29:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amztD-0003rH-6z for qemu-devel@nongnu.org; Mon, 04 Apr 2016 04:29:40 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:20133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amztD-0003qd-13 for qemu-devel@nongnu.org; Mon, 04 Apr 2016 04:29:39 -0400 From: James Hogan Date: Mon, 4 Apr 2016 09:29:15 +0100 Message-ID: <1459758556-4557-2-git-send-email-james.hogan@imgtec.com> In-Reply-To: <1459758556-4557-1-git-send-email-james.hogan@imgtec.com> References: <1459758556-4557-1-git-send-email-james.hogan@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 1/2] seccomp: Whitelist cacheflush since 2.2.0 not 2.2.3 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: James Hogan , Aurelien Jarno , Eduardo Otubo The cacheflush system call (found on MIPS and ARM) has been included in the libseccomp header since 2.2.0, so include include it back to that version. Previously it was only enabled since 2.2.3 since that is when it was enabled properly for ARM. This will allow seccomp support to be enabled for MIPS back to libseccomp 2.2.0. Signed-off-by: James Hogan Cc: Eduardo Otubo Cc: Aurelien Jarno --- qemu-seccomp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qemu-seccomp.c b/qemu-seccomp.c index 2866e3c2a660..9425dac17155 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -18,9 +18,7 @@ #if SCMP_VER_MAJOR >= 3 #define HAVE_CACHEFLUSH -#elif SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR >= 3 - #define HAVE_CACHEFLUSH -#elif SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR == 2 && SCMP_VER_MICRO >= 3 +#elif SCMP_VER_MAJOR == 2 && SCMP_VER_MINOR >= 2 #define HAVE_CACHEFLUSH #endif -- 2.4.10