| Index: sandbox/linux/integration_tests/bpf_dsl_seccomp_unittest.cc
|
| diff --git a/sandbox/linux/integration_tests/bpf_dsl_seccomp_unittest.cc b/sandbox/linux/integration_tests/bpf_dsl_seccomp_unittest.cc
|
| index e884774146d58738b5cbb4342fc4cb4508081e75..a0eeb3b713a0a7e2747bdd95db20987e28cedca3 100644
|
| --- a/sandbox/linux/integration_tests/bpf_dsl_seccomp_unittest.cc
|
| +++ b/sandbox/linux/integration_tests/bpf_dsl_seccomp_unittest.cc
|
| @@ -76,6 +76,15 @@ void EnableUnsafeTraps() {
|
| Die::SuppressInfoMessages(true);
|
| }
|
|
|
| +intptr_t KillTrap(const struct arch_seccomp_data& args, void* aux) {
|
| + BPF_ASSERT(false);
|
| + for (;;) _exit(1);
|
| +}
|
| +
|
| +ResultExpr Kill(const char *msg) {
|
| + return Trap(KillTrap, msg);
|
| +}
|
| +
|
| // BPF_TEST does a lot of the boiler-plate code around setting up a
|
| // policy and optional passing data between the caller, the policy and
|
| // any Trap() handlers. This is great for writing short and concise tests,
|
|
|