2014-02-13 00:24:00 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/***
|
|
|
|
This file is part of systemd.
|
|
|
|
|
|
|
|
Copyright 2014 Lennart Poettering
|
|
|
|
|
|
|
|
systemd is free software; you can redistribute it and/or modify it
|
|
|
|
under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
systemd is distributed in the hope that it will be useful, but
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
***/
|
|
|
|
|
2014-12-12 02:35:39 +01:00
|
|
|
#include <seccomp.h>
|
2015-12-03 21:13:37 +01:00
|
|
|
#include <stdint.h>
|
2014-02-13 00:24:00 +01:00
|
|
|
|
|
|
|
const char* seccomp_arch_to_string(uint32_t c);
|
|
|
|
int seccomp_arch_from_string(const char *n, uint32_t *ret);
|
2014-02-18 22:14:00 +01:00
|
|
|
|
|
|
|
int seccomp_add_secondary_archs(scmp_filter_ctx *c);
|
2016-06-01 11:56:01 +02:00
|
|
|
|
2016-08-22 21:40:58 +02:00
|
|
|
bool is_seccomp_available(void);
|
|
|
|
|
2016-06-01 11:56:01 +02:00
|
|
|
typedef struct SystemCallFilterSet {
|
|
|
|
const char *set_name;
|
|
|
|
const char *value;
|
|
|
|
} SystemCallFilterSet;
|
|
|
|
|
|
|
|
extern const SystemCallFilterSet syscall_filter_sets[];
|