diff options
Diffstat (limited to 'sandbox/linux/seccomp-bpf/bpf_tests.h')
-rw-r--r-- | sandbox/linux/seccomp-bpf/bpf_tests.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sandbox/linux/seccomp-bpf/bpf_tests.h b/sandbox/linux/seccomp-bpf/bpf_tests.h index 3ac631c..931a39e 100644 --- a/sandbox/linux/seccomp-bpf/bpf_tests.h +++ b/sandbox/linux/seccomp-bpf/bpf_tests.h @@ -87,9 +87,13 @@ class BpfTests : public UnitTests { arg->test()(arg->aux_); } else { - // TODO(markus): (crbug.com/141545) Call the compiler and verify the - // policy. That's the least we can do, if we don't have kernel support. - playground2::Sandbox::SetSandboxPolicy(arg->policy(), NULL); + // Call the compiler and verify the policy. That's the least we can do, + // if we don't have kernel support. + playground2::Sandbox::SetSandboxPolicy(arg->policy(), &arg->aux_); + playground2::Sandbox::Program *program = + playground2::Sandbox::AssembleFilter(); + playground2::Sandbox::VerifyProgram(*program); + delete program; sandbox::UnitTests::IgnoreThisTest(); } } |