Paul Lawrence | dfe8434 | 2017-02-16 09:24:39 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef SECCOMP_BPFS_H |
| 18 | #define SECCOMP_BPFS_H |
| 19 | |
| 20 | #include <stddef.h> |
| 21 | #include <linux/seccomp.h> |
| 22 | |
| 23 | extern const struct sock_filter arm_filter[]; |
| 24 | extern const size_t arm_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame^] | 25 | extern const struct sock_filter arm_global_filter[]; |
| 26 | extern const size_t arm_global_filter_size; |
Paul Lawrence | dfe8434 | 2017-02-16 09:24:39 -0800 | [diff] [blame] | 27 | extern const struct sock_filter arm64_filter[]; |
| 28 | extern const size_t arm64_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame^] | 29 | extern const struct sock_filter arm64_global_filter[]; |
| 30 | extern const size_t arm64_global_filter_size; |
Paul Lawrence | 89fa81f | 2017-02-17 10:22:03 -0800 | [diff] [blame] | 31 | extern const struct sock_filter x86_filter[]; |
| 32 | extern const size_t x86_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame^] | 33 | extern const struct sock_filter x86_global_filter[]; |
| 34 | extern const size_t x86_global_filter_size; |
Paul Lawrence | 89fa81f | 2017-02-17 10:22:03 -0800 | [diff] [blame] | 35 | extern const struct sock_filter x86_64_filter[]; |
| 36 | extern const size_t x86_64_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame^] | 37 | extern const struct sock_filter x86_64_global_filter[]; |
| 38 | extern const size_t x86_64_global_filter_size; |
Paul Lawrence | 89fa81f | 2017-02-17 10:22:03 -0800 | [diff] [blame] | 39 | extern const struct sock_filter mips_filter[]; |
| 40 | extern const size_t mips_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame^] | 41 | extern const struct sock_filter mips_global_filter[]; |
| 42 | extern const size_t mips_global_filter_size; |
Paul Lawrence | 89fa81f | 2017-02-17 10:22:03 -0800 | [diff] [blame] | 43 | extern const struct sock_filter mips64_filter[]; |
| 44 | extern const size_t mips64_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame^] | 45 | extern const struct sock_filter mips64_global_filter[]; |
| 46 | extern const size_t mips64_global_filter_size; |
Paul Lawrence | dfe8434 | 2017-02-16 09:24:39 -0800 | [diff] [blame] | 47 | |
| 48 | #endif |