Home | History | Annotate | Download | only in bpf_dsl

Lines Matching refs:Policy

19 #include "sandbox/linux/bpf_dsl/policy.h"
73 bool HasUnsafeTraps(const Policy* policy) {
74 DCHECK(policy);
76 if (policy->EvaluateSyscall(sysnum)->HasUnsafeTraps()) {
80 return policy->InvalidSyscall()->HasUnsafeTraps();
90 PolicyCompiler::PolicyCompiler(const Policy* policy, TrapRegistry* registry)
91 : policy_(policy),
97 DCHECK(policy);
134 // A compiled policy consists of three logical parts:
136 // 2. If the policy involves unsafe traps, check if the syscall was
139 // system call policy number.
170 // we continue evalutating the rest of the sandbox policy.