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

Side by Side Diff: sandbox/linux/seccomp-bpf/errorcode.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) 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_ERRORCODE_H__ 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_ERRORCODE_H__
6 #define SANDBOX_LINUX_SECCOMP_BPF_ERRORCODE_H__ 6 #define SANDBOX_LINUX_SECCOMP_BPF_ERRORCODE_H__
7 7
8 #include "sandbox/linux/sandbox_export.h"
9 #include "sandbox/linux/seccomp-bpf/linux_seccomp.h" 8 #include "sandbox/linux/seccomp-bpf/linux_seccomp.h"
10 #include "sandbox/linux/seccomp-bpf/trap.h" 9 #include "sandbox/linux/seccomp-bpf/trap.h"
10 #include "sandbox/sandbox_export.h"
11 11
12 namespace sandbox { 12 namespace sandbox {
13 13
14 struct arch_seccomp_data; 14 struct arch_seccomp_data;
15 15
16 // This class holds all the possible values that can be returned by a sandbox 16 // This class holds all the possible values that can be returned by a sandbox
17 // policy. 17 // policy.
18 // We can either wrap a symbolic ErrorCode (i.e. ERR_XXX enum values), an 18 // We can either wrap a symbolic ErrorCode (i.e. ERR_XXX enum values), an
19 // errno value (in the range 0..4095), a pointer to a TrapFnc callback 19 // errno value (in the range 0..4095), a pointer to a TrapFnc callback
20 // handling a SECCOMP_RET_TRAP trap, or a complex constraint. 20 // handling a SECCOMP_RET_TRAP trap, or a complex constraint.
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // 32bit field used for all possible types of ErrorCode values. This is 190 // 32bit field used for all possible types of ErrorCode values. This is
191 // the value that uniquely identifies any ErrorCode and it (typically) can 191 // the value that uniquely identifies any ErrorCode and it (typically) can
192 // be emitted directly into a BPF filter program. 192 // be emitted directly into a BPF filter program.
193 uint32_t err_; 193 uint32_t err_;
194 }; 194 };
195 195
196 } // namespace sandbox 196 } // namespace sandbox
197 197
198 #endif // SANDBOX_LINUX_SECCOMP_BPF_ERRORCODE_H__ 198 #endif // SANDBOX_LINUX_SECCOMP_BPF_ERRORCODE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698