Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: content/common/sandbox_seccomp_bpf_linux.cc

Issue 11416336: Revert an occasional change of Trap to UnsafeTrap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698