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

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

Issue 903273002: Update from https://crrev.com/315085 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/seccomp-bpf/codegen_unittest.cc ('k') | sandbox/linux/seccomp-bpf/sandbox_bpf.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SANDBOX_BPF_H_ 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_H_
6 #define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_H_ 6 #define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/files/scoped_file.h" 10 #include "base/files/scoped_file.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "sandbox/linux/seccomp-bpf/codegen.h" 13 #include "sandbox/linux/bpf_dsl/codegen.h"
14 #include "sandbox/sandbox_export.h" 14 #include "sandbox/sandbox_export.h"
15 15
16 namespace sandbox { 16 namespace sandbox {
17 struct arch_seccomp_data; 17 struct arch_seccomp_data;
18 namespace bpf_dsl { 18 namespace bpf_dsl {
19 class Policy; 19 class Policy;
20 } 20 }
21 21
22 // This class can be used to apply a syscall sandboxing policy expressed in a 22 // This class can be used to apply a syscall sandboxing policy expressed in a
23 // bpf_dsl::Policy object to the current process. 23 // bpf_dsl::Policy object to the current process.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 base::ScopedFD proc_task_fd_; 109 base::ScopedFD proc_task_fd_;
110 bool sandbox_has_started_; 110 bool sandbox_has_started_;
111 scoped_ptr<bpf_dsl::Policy> policy_; 111 scoped_ptr<bpf_dsl::Policy> policy_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(SandboxBPF); 113 DISALLOW_COPY_AND_ASSIGN(SandboxBPF);
114 }; 114 };
115 115
116 } // namespace sandbox 116 } // namespace sandbox
117 117
118 #endif // SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_H_ 118 #endif // SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_H_
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/codegen_unittest.cc ('k') | sandbox/linux/seccomp-bpf/sandbox_bpf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698