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

Side by Side Diff: sandbox/linux/system_headers/linux_seccomp.h

Issue 1053603002: Introduce linux_filter.h and replace #include <linux/filter.h> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SYSTEM_HEADERS_LINUX_SECCOMP_H_ 5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_
6 #define SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_ 6 #define SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_
7 7
8 #include <linux/filter.h>
9
10 // The Seccomp2 kernel ABI is not part of older versions of glibc. 8 // The Seccomp2 kernel ABI is not part of older versions of glibc.
11 // As we can't break compilation with these versions of the library, 9 // As we can't break compilation with these versions of the library,
12 // we explicitly define all missing symbols. 10 // we explicitly define all missing symbols.
13 // If we ever decide that we can now rely on system headers, the following 11 // If we ever decide that we can now rely on system headers, the following
14 // include files should be enabled: 12 // include files should be enabled:
15 // #include <linux/audit.h> 13 // #include <linux/audit.h>
16 // #include <linux/seccomp.h> 14 // #include <linux/seccomp.h>
17 15
18 // For audit.h 16 // For audit.h
19 #ifndef EM_ARM 17 #ifndef EM_ARM
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 #define SECCOMP_RET_DATA 0x0000ffffU // sections 105 #define SECCOMP_RET_DATA 0x0000ffffU // sections
108 #else 106 #else
109 #define SECCOMP_RET_INVALID 0x00010000U // Illegal return value 107 #define SECCOMP_RET_INVALID 0x00010000U // Illegal return value
110 #endif 108 #endif
111 109
112 #ifndef SYS_SECCOMP 110 #ifndef SYS_SECCOMP
113 #define SYS_SECCOMP 1 111 #define SYS_SECCOMP 1
114 #endif 112 #endif
115 113
116 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_ 114 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_
OLDNEW
« sandbox/linux/system_headers/linux_filter.h ('K') | « sandbox/linux/system_headers/linux_filter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698