diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-05-20 02:26:20 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-05-20 02:26:20 +0200 |
commit | 9b9825fa6a33a4f9703905100a88190aaf030607 (patch) | |
tree | 1dbb712b543320748e29afb8fd751e67fbfe9ed6 /src/pseccomp.h | |
parent | 84d818f280f3a398fc91ca82699bc380d37d99cf (diff) |
POTD skeleton #63.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/pseccomp.h')
-rw-r--r-- | src/pseccomp.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/pseccomp.h b/src/pseccomp.h index 76889b6..d208275 100644 --- a/src/pseccomp.h +++ b/src/pseccomp.h @@ -1,8 +1,21 @@ #ifndef POTD_SECCOMP_H #define POTD_SECCOMP_H 1 -int pseccomp_init(void); +#include <seccomp.h> + +typedef struct pseccomp_ctx { + scmp_filter_ctx sfilter; +} pseccomp_ctx; + + +int pseccomp_init(pseccomp_ctx **ctx); + +void pseccomp_free(pseccomp_ctx **ctx); int pseccomp_set_immutable(void); +int pseccomp_default_rules(pseccomp_ctx *ctx); + +int pseccomp_jail_rules(pseccomp_ctx *ctx); + #endif |