blob: ed1901b10a6e884fd3eeff784c87ec80cfc7fc29 [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
Victor Hsieh4f02dd52017-12-20 09:19:22 -080023// TODO(victorhsieh): remove once the callers are switched to the new API.
Paul Lawrencedfe84342017-02-16 09:24:39 -080024bool set_seccomp_filter();
Victor Hsieh4f02dd52017-12-20 09:19:22 -080025
26bool set_app_seccomp_filter();
27bool set_system_seccomp_filter();
Steve Muckleaa3f96c2017-07-20 13:11:54 -070028bool set_global_seccomp_filter();
Paul Lawrenceeabc3522016-11-11 11:33:42 -080029
30#endif