blob: f8e0b6acbd01fd0b117b43a106d80d6e991688f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* Copyright (C) 2020 Daniel Golle <daniel@makrotopia.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation
*
* This program 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 General Public License for more details.
*/
#ifndef _JAIL_SECCOMP_OCI_H_
#define _JAIL_SECCOMP_OCI_H_
#include <linux/filter.h>
#ifdef SECCOMP_SUPPORT
struct sock_fprog *parseOCIlinuxseccomp(struct blob_attr *msg);
int applyOCIlinuxseccomp(struct sock_fprog *prog);
#else
struct sock_fprog *parseOCIlinuxseccomp(struct blob_attr *msg) {
return NULL;
}
int applyOCIlinuxseccomp(struct sock_fprog *prog) {
return ENOTSUP;
}
#endif
#endif
|