blob: 8728c36235f842391e662ee2a466ce7c448c8e59 [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
17#ifndef SECCOMP_BPFS_H
18#define SECCOMP_BPFS_H
19
20#include <stddef.h>
21#include <linux/seccomp.h>
22
Victor Hsieh4f02dd52017-12-20 09:19:22 -080023extern const struct sock_filter arm_app_filter[];
24extern const size_t arm_app_filter_size;
25extern const struct sock_filter arm_system_filter[];
26extern const size_t arm_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070027extern const struct sock_filter arm_global_filter[];
28extern const size_t arm_global_filter_size;
Victor Hsieh4f02dd52017-12-20 09:19:22 -080029
30extern const struct sock_filter arm64_app_filter[];
31extern const size_t arm64_app_filter_size;
32extern const struct sock_filter arm64_system_filter[];
33extern const size_t arm64_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070034extern const struct sock_filter arm64_global_filter[];
35extern const size_t arm64_global_filter_size;
Victor Hsieh4f02dd52017-12-20 09:19:22 -080036
37extern const struct sock_filter x86_app_filter[];
38extern const size_t x86_app_filter_size;
39extern const struct sock_filter x86_system_filter[];
40extern const size_t x86_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070041extern const struct sock_filter x86_global_filter[];
42extern const size_t x86_global_filter_size;
Victor Hsieh4f02dd52017-12-20 09:19:22 -080043
44extern const struct sock_filter x86_64_app_filter[];
45extern const size_t x86_64_app_filter_size;
46extern const struct sock_filter x86_64_system_filter[];
47extern const size_t x86_64_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070048extern const struct sock_filter x86_64_global_filter[];
49extern const size_t x86_64_global_filter_size;
Victor Hsieh4f02dd52017-12-20 09:19:22 -080050
51extern const struct sock_filter mips_app_filter[];
52extern const size_t mips_app_filter_size;
53extern const struct sock_filter mips_system_filter[];
54extern const size_t mips_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070055extern const struct sock_filter mips_global_filter[];
56extern const size_t mips_global_filter_size;
Victor Hsieh4f02dd52017-12-20 09:19:22 -080057
58extern const struct sock_filter mips64_app_filter[];
59extern const size_t mips64_app_filter_size;
60extern const struct sock_filter mips64_system_filter[];
61extern const size_t mips64_system_filter_size;
Steve Muckleaa3f96c2017-07-20 13:11:54 -070062extern const struct sock_filter mips64_global_filter[];
63extern const size_t mips64_global_filter_size;
Paul Lawrencedfe84342017-02-16 09:24:39 -080064
65#endif