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

Unified Diff: sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc

Issue 590213003: Linux sandbox: Allow restricting sched_* on other processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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 aa347de39f4a53a6d7caf19612ababb653eb53ac..f3e9b01d73aa1de62c4b2254f2b13f7309e4f8a5 100644
--- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
+++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
@@ -260,4 +260,8 @@ ResultExpr BaselinePolicy::InvalidSyscall() const {
return CrashSIGSYS();
}
+pid_t BaselinePolicy::GetCurrentPid() const {
+ return current_pid_;
+}
+
} // namespace sandbox.

Powered by Google App Engine
This is Rietveld 408576698