seccomp: allow BPF_XOR based ALU instructions.

Allow BPF_XOR based ALU instructions.

Signed-off-by: Nicolas Schichan <[email protected]>
Acked-by: Kees Cook <[email protected]>
Acked-by: Will Drewry <[email protected]>
Signed-off-by: James Morris <[email protected]>
This commit is contained in:
Nicolas Schichan 2013-03-15 18:02:00 +01:00 • committed by James Morris
commit d13274794a

View file

@ -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: