samples/seccomp: fix 64-bit comparison macros
authorMathias Svensson <idolf@google.com>
Fri, 6 Jan 2017 21:32:39 +0000 (13:32 -0800)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:23 +0000 (14:04 +0200)
commit109b4210244d8e93c37735a2a0f5988bb0ccc6c6
tree44f40489d90e76ea9423c35be363f23310d03c93
parent1ba4fc4b0772b130c3acc9cd377f3039b9b24f8f
samples/seccomp: fix 64-bit comparison macros

commit 916cafdc95843fb9af5fd5f83ca499d75473d107 upstream.

There were some bugs in the JNE64 and JLT64 comparision macros. This fixes
them, improves comments, and cleans up the file while we are at it.

Reported-by: Stephen Röttger <sroettger@google.com>
Signed-off-by: Mathias Svensson <idolf@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
samples/seccomp/bpf-helper.h