Introduce linux_filter.h and replace #include <linux/filter.h>
commit168a20642b1ceb7fb49e78417671aaec26f5477a
authorhidehiko <hidehiko@chromium.org>
Wed, 8 Apr 2015 07:09:41 +0000 (8 00:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Apr 2015 07:10:24 +0000 (8 07:10 +0000)
tree9d7d50fca38acf9141bc2a721e199003afe183a4
parent6b1ae975b91bd2b65d35b92ccf76a91cb385972d
Introduce linux_filter.h and replace #include <linux/filter.h>

Some toolchain (especially PNaCl for Non-SFI build) does not
provide the linux/filter.h system header.
This CL defines all necessary structs and macros for sandbox,
and replace linux/filter.h with the new header.

This CL is preparation to enable seccomp-bpf sandbox on
nacl_helper_nonsfi.

TEST=Ran bots.
BUG=358465

Review URL: https://codereview.chromium.org/1053603002

Cr-Commit-Position: refs/heads/master@{#324194}
sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc
sandbox/linux/bpf_dsl/codegen.cc
sandbox/linux/bpf_dsl/codegen_unittest.cc
sandbox/linux/bpf_dsl/dump_bpf.cc
sandbox/linux/bpf_dsl/policy_compiler.cc
sandbox/linux/bpf_dsl/seccomp_macros.h
sandbox/linux/bpf_dsl/verifier.cc
sandbox/linux/seccomp-bpf/sandbox_bpf.cc
sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.cc
sandbox/linux/system_headers/linux_filter.h [new file with mode: 0644]
sandbox/linux/system_headers/linux_seccomp.h