| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |