aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux/seccomp.h
blob: f1903e66d7a1e2320fc2843cc9ff35886c7c6f80 (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
#ifndef _UAPI_LINUX_SECCOMP_H
#define _UAPI_LINUX_SECCOMP_H

#include <linux/compiler.h>
#include <linux/types.h>


#define SECCOMP_MODE_DISABLED	0 
#define SECCOMP_MODE_STRICT	1 
#define SECCOMP_MODE_FILTER	2 

#define SECCOMP_SET_MODE_STRICT	0
#define SECCOMP_SET_MODE_FILTER	1

#define SECCOMP_FILTER_FLAG_TSYNC	1

#define SECCOMP_RET_KILL	0x00000000U 
#define SECCOMP_RET_TRAP	0x00030000U 
#define SECCOMP_RET_ERRNO	0x00050000U 
#define SECCOMP_RET_TRACE	0x7ff00000U 
#define SECCOMP_RET_ALLOW	0x7fff0000U 

#define SECCOMP_RET_ACTION	0x7fff0000U
#define SECCOMP_RET_DATA	0x0000ffffU

struct seccomp_data {
	int nr;
	__u32 arch;
	__u64 instruction_pointer;
	__u64 args[6];
};

#endif