Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754736Ab3CORCt (ORCPT ); Fri, 15 Mar 2013 13:02:49 -0400 Received: from smtp4-g21.free.fr ([212.27.42.4]:57140 "EHLO smtp4-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754042Ab3CORCs (ORCPT ); Fri, 15 Mar 2013 13:02:48 -0400 From: Nicolas Schichan To: Will Drewry Cc: Nicolas Schichan , James Morris , Eric Paris , Kees Cook , Serge Hallyn , linux-kernel@vger.kernel.org Subject: [PATCH] seccomp: allow BPF_XOR based ALU instructions. Date: Fri, 15 Mar 2013 18:02:00 +0100 Message-Id: <1363366923-6269-1-git-send-email-nschichan@freebox.fr> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 803 Lines: 27 Signed-off-by: Nicolas Schichan --- kernel/seccomp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/seccomp.c b/kernel/seccomp.c index 5af44b5..b7a1004 100644 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -160,6 +160,8 @@ static int seccomp_check_filter(struct sock_filter *filter, unsigned int flen) case BPF_S_ALU_AND_X: case BPF_S_ALU_OR_K: case BPF_S_ALU_OR_X: + case BPF_S_ALU_XOR_K: + case BPF_S_ALU_XOR_X: case BPF_S_ALU_LSH_K: case BPF_S_ALU_LSH_X: case BPF_S_ALU_RSH_K: -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/