Index: sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc |
diff --git a/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc b/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc |
index 69d32bc18fc91936bd2d030952e76c4f95e0ec16..214b99c7467a6ccc7947b20ef774bc139ca38d53 100644 |
--- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc |
+++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc |
@@ -187,7 +187,8 @@ ResultExpr EvaluateSyscallImpl(int fs_denied_errno, |
defined(__aarch64__) |
if (sysno == __NR_socketpair) { |
// Only allow AF_UNIX, PF_UNIX. Crash if anything else is seen. |
- COMPILE_ASSERT(AF_UNIX == PF_UNIX, af_unix_pf_unix_different); |
+ static_assert(AF_UNIX == PF_UNIX, |
+ "af_unix and pf_unix should not be different"); |
const Arg<int> domain(0); |
return If(domain == AF_UNIX, Allow()).Else(CrashSIGSYS()); |
} |