aboutsummaryrefslogtreecommitdiff
path: root/src/pseccomp.h
blob: 0bb5b2c5e4561fcd7f249a946d6f9d5b0860afbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef POTD_SECCOMP_H
#define POTD_SECCOMP_H 1

#include <seccomp.h>

typedef struct pseccomp_ctx {
    scmp_filter_ctx sfilter;
} pseccomp_ctx;


int pseccomp_init(pseccomp_ctx **ctx, unsigned int defact_allow);

void pseccomp_free(pseccomp_ctx **ctx);

int pseccomp_set_immutable(void);

int pseccomp_default_rules(pseccomp_ctx *ctx);

int pseccomp_protocol_rules(pseccomp_ctx *ctx);

int pseccomp_jail_rules(pseccomp_ctx *ctx);

#endif