Index: sandbox/linux/bpf_dsl/policy_compiler.cc |
diff --git a/sandbox/linux/bpf_dsl/policy_compiler.cc b/sandbox/linux/bpf_dsl/policy_compiler.cc |
index 514b430c0d17052d60d695873b35e925b3a09f85..5be32f4f65b2d8c740ac33bde22101abac7bb846 100644 |
--- a/sandbox/linux/bpf_dsl/policy_compiler.cc |
+++ b/sandbox/linux/bpf_dsl/policy_compiler.cc |
@@ -77,9 +77,8 @@ intptr_t BPFFailure(const struct arch_seccomp_data&, void* aux) { |
} |
bool HasUnsafeTraps(const Policy* policy) { |
- for (uint32_t sysnum : SyscallSet::All()) { |
- if (SyscallSet::IsValid(sysnum) && |
- policy->EvaluateSyscall(sysnum)->HasUnsafeTraps()) { |
+ for (uint32_t sysnum : SyscallSet::ValidOnly()) { |
+ if (policy->EvaluateSyscall(sysnum)->HasUnsafeTraps()) { |
return true; |
} |
} |