| OLD | NEW |
| 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 Loading... |
| 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. |
| OLD | NEW |