• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #pragma once
18 
19 #include <stddef.h>
20 #include <linux/seccomp.h>
21 
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_app_zygote_filter[];
25 extern const size_t arm_app_zygote_filter_size;
26 extern const struct sock_filter arm_system_filter[];
27 extern const size_t arm_system_filter_size;
28 extern const struct sock_filter arm_global_filter[];
29 extern const size_t arm_global_filter_size;
30 
31 extern const struct sock_filter arm64_app_filter[];
32 extern const size_t arm64_app_filter_size;
33 extern const struct sock_filter arm64_app_zygote_filter[];
34 extern const size_t arm64_app_zygote_filter_size;
35 extern const struct sock_filter arm64_system_filter[];
36 extern const size_t arm64_system_filter_size;
37 extern const struct sock_filter arm64_global_filter[];
38 extern const size_t arm64_global_filter_size;
39 
40 extern const struct sock_filter x86_app_filter[];
41 extern const size_t x86_app_filter_size;
42 extern const struct sock_filter x86_app_zygote_filter[];
43 extern const size_t x86_app_zygote_filter_size;
44 extern const struct sock_filter x86_system_filter[];
45 extern const size_t x86_system_filter_size;
46 extern const struct sock_filter x86_global_filter[];
47 extern const size_t x86_global_filter_size;
48 
49 extern const struct sock_filter x86_64_app_filter[];
50 extern const size_t x86_64_app_filter_size;
51 extern const struct sock_filter x86_64_app_zygote_filter[];
52 extern const size_t x86_64_app_zygote_filter_size;
53 extern const struct sock_filter x86_64_system_filter[];
54 extern const size_t x86_64_system_filter_size;
55 extern const struct sock_filter x86_64_global_filter[];
56 extern const size_t x86_64_global_filter_size;
57 
58 extern const struct sock_filter mips_app_filter[];
59 extern const size_t mips_app_filter_size;
60 extern const struct sock_filter mips_app_zygote_filter[];
61 extern const size_t mips_app_zygote_filter_size;
62 extern const struct sock_filter mips_system_filter[];
63 extern const size_t mips_system_filter_size;
64 extern const struct sock_filter mips_global_filter[];
65 extern const size_t mips_global_filter_size;
66 
67 extern const struct sock_filter mips64_app_filter[];
68 extern const size_t mips64_app_filter_size;
69 extern const struct sock_filter mips64_app_zygote_filter[];
70 extern const size_t mips64_app_zygote_filter_size;
71 extern const struct sock_filter mips64_system_filter[];
72 extern const size_t mips64_system_filter_size;
73 extern const struct sock_filter mips64_global_filter[];
74 extern const size_t mips64_global_filter_size;
75