samples/seccomp: fix endianness bug in LO_ARG define
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 31 Jul 2012 14:15:36 +0000 (16:15 +0200)
committerJames Morris <james.l.morris@oracle.com>
Fri, 3 Aug 2012 04:27:40 +0000 (14:27 +1000)
The LO_ARG define needs to consider endianness also for 32 bit builds.

The "bpf_fancy" test case didn't work on s390 in 32 bit and compat mode
because the LO_ARG define resulted in a BPF program which read the upper
halve of the 64 bit system call arguments instead of the lower halves.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
samples/seccomp/bpf-helper.h

Simple merge