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 | |
Elliott Hughes | cbc80ba | 2018-02-13 14:26:29 -0800 | [diff] [blame] | 17 | #pragma once |
Paul Lawrence | dfe8434 | 2017-02-16 09:24:39 -0800 | [diff] [blame] | 18 | |
| 19 | #include <stddef.h> |
| 20 | #include <linux/seccomp.h> |
| 21 | |
Victor Hsieh | 4f02dd5 | 2017-12-20 09:19:22 -0800 | [diff] [blame] | 22 | extern const struct sock_filter arm_app_filter[]; |
| 23 | extern const size_t arm_app_filter_size; |
| 24 | extern const struct sock_filter arm_system_filter[]; |
| 25 | extern const size_t arm_system_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame] | 26 | extern const struct sock_filter arm_global_filter[]; |
| 27 | extern const size_t arm_global_filter_size; |
Victor Hsieh | 4f02dd5 | 2017-12-20 09:19:22 -0800 | [diff] [blame] | 28 | |
| 29 | extern const struct sock_filter arm64_app_filter[]; |
| 30 | extern const size_t arm64_app_filter_size; |
| 31 | extern const struct sock_filter arm64_system_filter[]; |
| 32 | extern const size_t arm64_system_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame] | 33 | extern const struct sock_filter arm64_global_filter[]; |
| 34 | extern const size_t arm64_global_filter_size; |
Victor Hsieh | 4f02dd5 | 2017-12-20 09:19:22 -0800 | [diff] [blame] | 35 | |
| 36 | extern const struct sock_filter x86_app_filter[]; |
| 37 | extern const size_t x86_app_filter_size; |
| 38 | extern const struct sock_filter x86_system_filter[]; |
| 39 | extern const size_t x86_system_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame] | 40 | extern const struct sock_filter x86_global_filter[]; |
| 41 | extern const size_t x86_global_filter_size; |
Victor Hsieh | 4f02dd5 | 2017-12-20 09:19:22 -0800 | [diff] [blame] | 42 | |
| 43 | extern const struct sock_filter x86_64_app_filter[]; |
| 44 | extern const size_t x86_64_app_filter_size; |
| 45 | extern const struct sock_filter x86_64_system_filter[]; |
| 46 | extern const size_t x86_64_system_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame] | 47 | extern const struct sock_filter x86_64_global_filter[]; |
| 48 | extern const size_t x86_64_global_filter_size; |
Victor Hsieh | 4f02dd5 | 2017-12-20 09:19:22 -0800 | [diff] [blame] | 49 | |
| 50 | extern const struct sock_filter mips_app_filter[]; |
| 51 | extern const size_t mips_app_filter_size; |
| 52 | extern const struct sock_filter mips_system_filter[]; |
| 53 | extern const size_t mips_system_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame] | 54 | extern const struct sock_filter mips_global_filter[]; |
| 55 | extern const size_t mips_global_filter_size; |
Victor Hsieh | 4f02dd5 | 2017-12-20 09:19:22 -0800 | [diff] [blame] | 56 | |
| 57 | extern const struct sock_filter mips64_app_filter[]; |
| 58 | extern const size_t mips64_app_filter_size; |
| 59 | extern const struct sock_filter mips64_system_filter[]; |
| 60 | extern const size_t mips64_system_filter_size; |
Steve Muckle | aa3f96c | 2017-07-20 13:11:54 -0700 | [diff] [blame] | 61 | extern const struct sock_filter mips64_global_filter[]; |
| 62 | extern const size_t mips64_global_filter_size; |