Index: content/common/sandbox_seccomp_bpf_linux.cc |
=================================================================== |
--- content/common/sandbox_seccomp_bpf_linux.cc (revision 170883) |
+++ content/common/sandbox_seccomp_bpf_linux.cc (working copy) |
@@ -1227,10 +1227,10 @@ |
if (IsBaselinePolicyWatched(sysno)) { |
// Previously unseen syscalls. TODO(jln): some of these should |
// be denied gracefully right away. |
- return Sandbox::UnsafeTrap(CrashSIGSYS_Handler, NULL); |
+ return Sandbox::Trap(CrashSIGSYS_Handler, NULL); |
} |
// In any other case crash the program with our SIGSYS handler |
- return Sandbox::UnsafeTrap(CrashSIGSYS_Handler, NULL); |
+ return Sandbox::Trap(CrashSIGSYS_Handler, NULL); |
} |
// x86_64 only for now. Needs to be adapted and tested for i386/ARM. |
@@ -1255,7 +1255,7 @@ |
// Hook open() in the GPU process to allow opening /etc/drirc, |
// needed by Mesa. |
// The hook needs dup(), lseek(), and close() to be allowed. |
- return Sandbox::UnsafeTrap(GpuOpenSIGSYS_Handler, NULL); |
+ return Sandbox::Trap(GpuOpenSIGSYS_Handler, NULL); |
} |
default: |
if (IsEventFd(sysno)) |