From: Nicolas Schichan Date: Fri, 15 Mar 2013 17:02:00 +0000 (+0100) Subject: seccomp: allow BPF_XOR based ALU instructions. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d13274794ad28d90ac81643d3d1d18338d948764;p=linux-beck.git seccomp: allow BPF_XOR based ALU instructions. Allow BPF_XOR based ALU instructions. Signed-off-by: Nicolas Schichan Acked-by: Kees Cook Acked-by: Will Drewry Signed-off-by: James Morris --- diff --git a/kernel/seccomp.c b/kernel/seccomp.c index 5af44b593770..b7a10048a32c 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: