diff options
| author | Manuel Bentele | 2020-10-23 15:18:01 +0200 |
|---|---|---|
| committer | Manuel Bentele | 2020-10-23 15:18:01 +0200 |
| commit | dbb41ce2b7f309d394054a6bd1e33afd578798a5 (patch) | |
| tree | 6a31092063d9f2fb5ac5720ec6759040e793c3d5 /kernel/tests/include/lapi/capability.h | |
| parent | Set Linux kernel version to unknown if it is not detectable (diff) | |
| download | xloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.tar.gz xloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.tar.xz xloop-dbb41ce2b7f309d394054a6bd1e33afd578798a5.zip | |
Move the source code of all xloop components to the common 'src' directory
Diffstat (limited to 'kernel/tests/include/lapi/capability.h')
| -rw-r--r-- | kernel/tests/include/lapi/capability.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/kernel/tests/include/lapi/capability.h b/kernel/tests/include/lapi/capability.h deleted file mode 100644 index fde27ef..0000000 --- a/kernel/tests/include/lapi/capability.h +++ /dev/null @@ -1,51 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * Copyright (c) 2019 Richard Palethorpe <rpalethorpe@suse.com> - */ - -#ifndef LAPI_CAPABILITY_H -#define LAPI_CAPABILITY_H - -#include "config.h" - -#ifdef HAVE_SYS_CAPABILITY_H -# include <sys/capability.h> -/** - * Some old libcap-devel(1.96~2.16) define _LINUX_TYPES_H in - * sys/capability.h that makes ltp-lib cann't include linux/types.h - * essentially. Here undefine it if include such old header-file. - */ -# ifndef HAVE_NEWER_LIBCAP -# undef _LINUX_TYPES_H -# endif -#endif - -#ifndef CAP_NET_RAW -# define CAP_NET_RAW 13 -#endif - -#ifndef CAP_SYS_ADMIN -# define CAP_SYS_ADMIN 21 -#endif - -#ifndef CAP_SYS_TIME -# define CAP_SYS_TIME 25 -#endif - -#ifndef CAP_AUDIT_READ -# define CAP_AUDIT_READ 37 -#endif - -#ifndef CAP_SYS_RESOURCE -# define CAP_SYS_RESOURCE 24 -#endif - -#ifndef CAP_TO_INDEX -# define CAP_TO_INDEX(x) ((x) >> 5) -#endif - -#ifndef CAP_TO_MASK -# define CAP_TO_MASK(x) (1 << ((x) & 31)) -#endif - -#endif |
