From dbb41ce2b7f309d394054a6bd1e33afd578798a5 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 23 Oct 2020 15:18:01 +0200 Subject: Move the source code of all xloop components to the common 'src' directory --- kernel/tests/include/lapi/seccomp.h | 40 ------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 kernel/tests/include/lapi/seccomp.h (limited to 'kernel/tests/include/lapi/seccomp.h') diff --git a/kernel/tests/include/lapi/seccomp.h b/kernel/tests/include/lapi/seccomp.h deleted file mode 100644 index fe95cab..0000000 --- a/kernel/tests/include/lapi/seccomp.h +++ /dev/null @@ -1,40 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * Copyright (c) 2019 FUJITSU LIMITED. All rights reserved. - * Author: Yang Xu - */ -#ifndef LAPI_SECCOMP_H -#define LAPI_SECCOMP_H - -#include - -#ifdef HAVE_LINUX_SECCOMP_H -# include -#else -/* Valid values for seccomp.mode and prctl(PR_SET_SECCOMP, ) */ -# define SECCOMP_MODE_DISABLED 0 -# define SECCOMP_MODE_STRICT 1 -# define SECCOMP_MODE_FILTER 2 - -# define SECCOMP_RET_KILL_THREAD 0x00000000U /* kill the thread */ -# define SECCOMP_RET_KILL SECCOMP_RET_KILL_THREAD -# define SECCOMP_RET_ALLOW 0x7fff0000U /* allow */ - -/** - * struct seccomp_data - the format the BPF program executes over. - * @nr: the system call number - * @arch: indicates system call convention as an AUDIT_ARCH_* value - * as defined in . - * @instruction_pointer: at the time of the system call. - * @args: up to 6 system call arguments always stored as 64-bit values - * regardless of the architecture. - */ -struct seccomp_data { - int nr; - uint32_t arch; - uint64_t instruction_pointer; - uint64_t args[6]; -}; - -#endif /* HAVE_LINUX_SECCOMP_H*/ -#endif /* LAPI_SECCOMP_H */ -- cgit v1.2.3-55-g7522