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

Side by Side Diff: content/common/sandbox_linux/sandbox_bpf_base_policy_linux.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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h" 5 #include "content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "sandbox/linux/seccomp-bpf-helpers/baseline_policy.h" 10 #include "sandbox/linux/seccomp-bpf-helpers/baseline_policy.h"
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 bool SandboxBPFBasePolicy::PreSandboxHook() { 37 bool SandboxBPFBasePolicy::PreSandboxHook() {
38 return true; 38 return true;
39 } 39 }
40 40
41 int SandboxBPFBasePolicy::GetFSDeniedErrno() { 41 int SandboxBPFBasePolicy::GetFSDeniedErrno() {
42 return kFSDeniedErrno; 42 return kFSDeniedErrno;
43 } 43 }
44 44
45 pid_t SandboxBPFBasePolicy::GetCurrentPid() const{
46 return baseline_policy_->GetCurrentPid();
47 }
48
45 } // namespace content. 49 } // namespace content.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698