| 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 0eb85ca6736bb3662dbf520b13d7723e7c2cc3d8..995a3902d03766539e4a23e03c33a97eb8468d88 100644
|
| --- a/sandbox/linux/bpf_dsl/policy_compiler.cc
|
| +++ b/sandbox/linux/bpf_dsl/policy_compiler.cc
|
| @@ -76,9 +76,8 @@ intptr_t BPFFailure(const struct arch_seccomp_data&, void* aux) {
|
| }
|
|
|
| bool HasUnsafeTraps(const SandboxBPFDSLPolicy* 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;
|
| }
|
| }
|
|
|