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

Unified Diff: content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h

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: content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h
diff --git a/content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h b/content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h
index 7f3b8946943895408aede338e5b35a3f6a95a3f8..33c826382410010b01c1d94f6a52f91b0d16e2c5 100644
--- a/content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h
+++ b/content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h
@@ -36,6 +36,9 @@ class SandboxBPFBasePolicy : public sandbox::bpf_dsl::SandboxBPFDSLPolicy {
// Get the errno(3) to return for filesystem errors.
static int GetFSDeniedErrno();
+ // Returns the pid of the process being sandboxed.
+ pid_t GetCurrentPid() const;
jln (very slow on Chromium) 2014/09/22 21:56:44 I don't think you need this here. We can add it wh
rickyz (no longer on Chrome) 2014/09/23 06:03:20 Done.
+
private:
// Compose the BaselinePolicy from sandbox/.
scoped_ptr<sandbox::BaselinePolicy> baseline_policy_;

Powered by Google App Engine
This is Rietveld 408576698