1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 **************************************************************************** 11 ****************************************************************************/ 12#ifndef _LINUX_CAPABILITY_H 13#define _LINUX_CAPABILITY_H 14 15#include <linux/types.h> 16#include <linux/compiler.h> 17 18#define _LINUX_CAPABILITY_VERSION 0x19980330 19 20typedef struct __user_cap_header_struct { 21 __u32 version; 22 int pid; 23} __user *cap_user_header_t; 24 25typedef struct __user_cap_data_struct { 26 __u32 effective; 27 __u32 permitted; 28 __u32 inheritable; 29} __user *cap_user_data_t; 30 31#define CAP_CHOWN 0 32 33#define CAP_DAC_OVERRIDE 1 34 35#define CAP_DAC_READ_SEARCH 2 36 37#define CAP_FOWNER 3 38 39#define CAP_FSETID 4 40 41#define CAP_FS_MASK 0x1f 42 43#define CAP_KILL 5 44 45#define CAP_SETGID 6 46 47#define CAP_SETUID 7 48 49#define CAP_SETPCAP 8 50 51#define CAP_LINUX_IMMUTABLE 9 52 53#define CAP_NET_BIND_SERVICE 10 54 55#define CAP_NET_BROADCAST 11 56 57#define CAP_NET_ADMIN 12 58 59#define CAP_NET_RAW 13 60 61#define CAP_IPC_LOCK 14 62 63#define CAP_IPC_OWNER 15 64 65#define CAP_SYS_MODULE 16 66 67#define CAP_SYS_RAWIO 17 68 69#define CAP_SYS_CHROOT 18 70 71#define CAP_SYS_PTRACE 19 72 73#define CAP_SYS_PACCT 20 74 75#define CAP_SYS_ADMIN 21 76 77#define CAP_SYS_BOOT 22 78 79#define CAP_SYS_NICE 23 80 81#define CAP_SYS_RESOURCE 24 82 83#define CAP_SYS_TIME 25 84 85#define CAP_SYS_TTY_CONFIG 26 86 87#define CAP_MKNOD 27 88 89#define CAP_LEASE 28 90 91#define CAP_AUDIT_WRITE 29 92 93#define CAP_AUDIT_CONTROL 30 94 95#endif 96