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

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

Issue 1892783002: bpf_dsl: replace scoped_refptr with std::shared_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix asan build Created 4 years, 7 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
« no previous file with comments | « sandbox/linux/bpf_dsl/cons.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_H_ 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_H_
6 #define SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_H_ 6 #define SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_H_
7 7
8 #include <sys/types.h>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "sandbox/linux/bpf_dsl/bpf_dsl_forward.h" 11 #include "sandbox/linux/bpf_dsl/bpf_dsl_forward.h"
10 #include "sandbox/linux/bpf_dsl/policy.h" 12 #include "sandbox/linux/bpf_dsl/policy.h"
11 #include "sandbox/sandbox_export.h" 13 #include "sandbox/sandbox_export.h"
12 14
13 namespace sandbox { 15 namespace sandbox {
14 16
15 // This is a helper to build seccomp-bpf policies, i.e. policies for a sandbox 17 // This is a helper to build seccomp-bpf policies, i.e. policies for a sandbox
16 // that reduces the Linux kernel's attack surface. Given its nature, it doesn't 18 // that reduces the Linux kernel's attack surface. Given its nature, it doesn't
17 // have a clear semantics and is mostly "implementation-defined". 19 // have a clear semantics and is mostly "implementation-defined".
(...skipping 22 matching lines...) Expand all
40 42
41 // The PID that the policy applies to (should be equal to the current pid). 43 // The PID that the policy applies to (should be equal to the current pid).
42 pid_t policy_pid_; 44 pid_t policy_pid_;
43 45
44 DISALLOW_COPY_AND_ASSIGN(BaselinePolicy); 46 DISALLOW_COPY_AND_ASSIGN(BaselinePolicy);
45 }; 47 };
46 48
47 } // namespace sandbox. 49 } // namespace sandbox.
48 50
49 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_H_ 51 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_H_
OLDNEW
« no previous file with comments | « sandbox/linux/bpf_dsl/cons.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698