122851890Sopenharmony_ci/*
222851890Sopenharmony_ci * This header was generated from the Linux kernel headers by update_headers.py,
322851890Sopenharmony_ci * to provide necessary information from kernel to userspace, such as constants,
422851890Sopenharmony_ci * structures, and macros, and thus, contains no copyrightable information.
522851890Sopenharmony_ci */
622851890Sopenharmony_ci#ifndef _UAPI_LINUX_SECCOMP_H
722851890Sopenharmony_ci#define _UAPI_LINUX_SECCOMP_H
822851890Sopenharmony_ci#include <linux/compiler.h>
922851890Sopenharmony_ci#include <linux/types.h>
1022851890Sopenharmony_ci#define SECCOMP_MODE_DISABLED	0
1122851890Sopenharmony_ci#define SECCOMP_MODE_STRICT	1
1222851890Sopenharmony_ci#define SECCOMP_MODE_FILTER	2
1322851890Sopenharmony_ci#define SECCOMP_SET_MODE_STRICT		0
1422851890Sopenharmony_ci#define SECCOMP_SET_MODE_FILTER		1
1522851890Sopenharmony_ci#define SECCOMP_GET_ACTION_AVAIL	2
1622851890Sopenharmony_ci#define SECCOMP_FILTER_FLAG_TSYNC	(1UL << 0)
1722851890Sopenharmony_ci#define SECCOMP_FILTER_FLAG_LOG		(1UL << 1)
1822851890Sopenharmony_ci#define SECCOMP_FILTER_FLAG_SPEC_ALLOW	(1UL << 2)
1922851890Sopenharmony_ci#define SECCOMP_RET_KILL_PROCESS 0x80000000U
2022851890Sopenharmony_ci#define SECCOMP_RET_KILL_THREAD	 0x00000000U
2122851890Sopenharmony_ci#define SECCOMP_RET_KILL	 SECCOMP_RET_KILL_THREAD
2222851890Sopenharmony_ci#define SECCOMP_RET_TRAP	 0x00030000U
2322851890Sopenharmony_ci#define SECCOMP_RET_ERRNO	 0x00050000U
2422851890Sopenharmony_ci#define SECCOMP_RET_TRACE	 0x7ff00000U
2522851890Sopenharmony_ci#define SECCOMP_RET_LOG		 0x7ffc0000U
2622851890Sopenharmony_ci#define SECCOMP_RET_ALLOW	 0x7fff0000U
2722851890Sopenharmony_ci#define SECCOMP_RET_ACTION_FULL	0xffff0000U
2822851890Sopenharmony_ci#define SECCOMP_RET_ACTION	0x7fff0000U
2922851890Sopenharmony_ci#define SECCOMP_RET_DATA	0x0000ffffU
3022851890Sopenharmony_cistruct seccomp_data {
3122851890Sopenharmony_ci	int nr;
3222851890Sopenharmony_ci	__u32 arch;
3322851890Sopenharmony_ci	__u64 instruction_pointer;
3422851890Sopenharmony_ci	__u64 args[6];
3522851890Sopenharmony_ci};
3622851890Sopenharmony_ci#endif
37