Home
last modified time | relevance | path

Searched refs:HasUnsafeTraps (Results 1 – 4 of 4) sorted by relevance

/external/libchrome/sandbox/linux/bpf_dsl/
Dbpf_dsl.cc60 bool HasUnsafeTraps() const override { return safe_ == false; } in HasUnsafeTraps() function in sandbox::bpf_dsl::__anon424c09e80111::TrapResultExprImpl
90 bool HasUnsafeTraps() const override { in HasUnsafeTraps() function in sandbox::bpf_dsl::__anon424c09e80111::IfThenResultExprImpl
91 return then_result_->HasUnsafeTraps() || else_result_->HasUnsafeTraps(); in HasUnsafeTraps()
204 bool ResultExprImpl::HasUnsafeTraps() const { in HasUnsafeTraps() function in sandbox::bpf_dsl::internal::ResultExprImpl
Dpolicy_compiler.cc73 bool HasUnsafeTraps(const Policy* policy) { in HasUnsafeTraps() function
76 if (policy->EvaluateSyscall(sysnum)->HasUnsafeTraps()) { in HasUnsafeTraps()
80 return policy->InvalidSyscall()->HasUnsafeTraps(); in HasUnsafeTraps()
96 has_unsafe_traps_(HasUnsafeTraps(policy_)) { in PolicyCompiler()
Dbpf_dsl_unittest.cc461 TEST(BPFDSL, HasUnsafeTraps) { in TEST() argument
463 EXPECT_FALSE(allow->HasUnsafeTraps()); in TEST()
466 EXPECT_FALSE(safe->HasUnsafeTraps()); in TEST()
469 EXPECT_TRUE(unsafe->HasUnsafeTraps()); in TEST()
473 EXPECT_TRUE(maybe->HasUnsafeTraps()); in TEST()
Dbpf_dsl_impl.h48 virtual bool HasUnsafeTraps() const;