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

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

Issue 598203004: Linux sandbox: Restrict sched_* syscalls on the GPU and ppapi processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename to policy_pid, add SANDBOX_EXPORT. 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.h
diff --git a/sandbox/linux/seccomp-bpf-helpers/baseline_policy.h b/sandbox/linux/seccomp-bpf-helpers/baseline_policy.h
index 8f842f09fdd9826dcbbbb05a7656313a9c6d8e6b..8e39d48ad0dd2121af9d29f32a217af7a2aa2626 100644
--- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy.h
+++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy.h
@@ -32,10 +32,14 @@ class SANDBOX_EXPORT BaselinePolicy : public bpf_dsl::SandboxBPFDSLPolicy {
virtual bpf_dsl::ResultExpr EvaluateSyscall(
int system_call_number) const OVERRIDE;
virtual bpf_dsl::ResultExpr InvalidSyscall() const OVERRIDE;
+ pid_t policy_pid() const { return policy_pid_; }
private:
int fs_denied_errno_;
- pid_t current_pid_;
+
+ // The PID that the policy applies to (should be equal to the current pid).
+ pid_t policy_pid_;
+
DISALLOW_COPY_AND_ASSIGN(BaselinePolicy);
};
« no previous file with comments | « content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h ('k') | sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698