blob: 797dfc5e85c45d41b77559dc21f8dcea885c105f [file] [log] [blame]
Paul Lawrencedfe84342017-02-16 09:24:39 -08001/*
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 Hughescbc80ba2018-02-13 14:26:29 -080017#pragma once
Paul Lawrencedfe84342017-02-16 09:24:39 -080018
19#include <stddef.h>
20#include <linux/seccomp.h>
21
Victor Hsieh4f02dd52017-12-20 09:19:22 -080022extern const struct sock_filter arm_app_filter[];
23extern const size_t arm_app_filter_size;
24extern const struct sock_filter arm_system_filter[];
25extern const size_t arm_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070026extern const struct sock_filter arm_global_filter[];
27extern const size_t arm_global_filter_size;
Victor Hsieh4f02dd52017-12-20 09:19:22 -080028
29extern const struct sock_filter arm64_app_filter[];
30extern const size_t arm64_app_filter_size;
31extern const struct sock_filter arm64_system_filter[];
32extern const size_t arm64_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070033extern const struct sock_filter arm64_global_filter[];
34extern const size_t arm64_global_filter_size;
Victor Hsieh4f02dd52017-12-20 09:19:22 -080035
36extern const struct sock_filter x86_app_filter[];
37extern const size_t x86_app_filter_size;
38extern const struct sock_filter x86_system_filter[];
39extern const size_t x86_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070040extern const struct sock_filter x86_global_filter[];
41extern const size_t x86_global_filter_size;
Victor Hsieh4f02dd52017-12-20 09:19:22 -080042
43extern const struct sock_filter x86_64_app_filter[];
44extern const size_t x86_64_app_filter_size;
45extern const struct sock_filter x86_64_system_filter[];
46extern const size_t x86_64_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070047extern const struct sock_filter x86_64_global_filter[];
48extern const size_t x86_64_global_filter_size;
Victor Hsieh4f02dd52017-12-20 09:19:22 -080049
50extern const struct sock_filter mips_app_filter[];
51extern const size_t mips_app_filter_size;
52extern const struct sock_filter mips_system_filter[];
53extern const size_t mips_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070054extern const struct sock_filter mips_global_filter[];
55extern const size_t mips_global_filter_size;
Victor Hsieh4f02dd52017-12-20 09:19:22 -080056
57extern const struct sock_filter mips64_app_filter[];
58extern const size_t mips64_app_filter_size;
59extern const struct sock_filter mips64_system_filter[];
60extern const size_t mips64_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070061extern const struct sock_filter mips64_global_filter[];
62extern const size_t mips64_global_filter_size;