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

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

Issue 273423007: Move sanbox_export.h to //sandbox from //sandbox/linux and split root OWNERS file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop OWNERS Created 6 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 | Annotate | Revision Log
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 "sandbox/linux/sandbox_export.h"
9 #include "sandbox/linux/seccomp-bpf/errorcode.h" 8 #include "sandbox/linux/seccomp-bpf/errorcode.h"
10 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h" 9 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h"
10 #include "sandbox/sandbox_export.h"
11 11
12 namespace sandbox { 12 namespace sandbox {
13 13
14 class SandboxBPF; 14 class SandboxBPF;
15 class SandboxBPFPolicy; 15 class SandboxBPFPolicy;
16 16
17 // 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
18 // 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
19 // have a clear semantics and is mostly "implementation-defined". 19 // have a clear semantics and is mostly "implementation-defined".
20 // 20 //
(...skipping 17 matching lines...) Expand all
38 38
39 private: 39 private:
40 int fs_denied_errno_; 40 int fs_denied_errno_;
41 pid_t current_pid_; 41 pid_t current_pid_;
42 DISALLOW_COPY_AND_ASSIGN(BaselinePolicy); 42 DISALLOW_COPY_AND_ASSIGN(BaselinePolicy);
43 }; 43 };
44 44
45 } // namespace sandbox. 45 } // namespace sandbox.
46 46
47 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_H_ 47 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698