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

Unified Diff: sandbox/linux/seccomp-bpf/trap.cc

Issue 628823003: sandbox_bpf: rework how unsafe traps are compiled/verified (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@policies
Patch Set: Sync Created 6 years, 2 months 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 | « sandbox/linux/seccomp-bpf/trap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/seccomp-bpf/trap.cc
diff --git a/sandbox/linux/seccomp-bpf/trap.cc b/sandbox/linux/seccomp-bpf/trap.cc
index 8860ac12ea490d61897bb730a48181c76364ceb0..8fa31740855a4dd94586b7c96aa80a1da91db0f0 100644
--- a/sandbox/linux/seccomp-bpf/trap.cc
+++ b/sandbox/linux/seccomp-bpf/trap.cc
@@ -380,13 +380,6 @@ bool Trap::EnableUnsafeTrapsInSigSysHandler() {
return trap->has_unsafe_traps_;
}
-bool Trap::IsSafeTrapId(uint16_t id) {
- if (global_trap_ && id > 0 && id <= global_trap_->trap_array_size_) {
- return global_trap_->trap_array_[id - 1].safe;
- }
- return false;
-}
-
Trap* Trap::global_trap_;
} // namespace sandbox
« no previous file with comments | « sandbox/linux/seccomp-bpf/trap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698