blob: 397f8e4fc259bd666ddee93a7a7a42a3fabebbab [file] [log] [blame]
Paul Lawrenceeabc3522016-11-11 11:33:42 -08001/*
2 * Copyright (C) 2016 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_POLICY_H
18#define SECCOMP_POLICY_H
19
Paul Lawrence26f57b62017-03-27 15:38:37 -070020#include <stddef.h>
21#include <linux/filter.h>
22
Paul Lawrencedfe84342017-02-16 09:24:39 -080023bool set_seccomp_filter();
Paul Lawrence26f57b62017-03-27 15:38:37 -070024void get_seccomp_filter(const sock_filter*& filter, size_t& filter_size);
Paul Lawrenceeabc3522016-11-11 11:33:42 -080025
26#endif