Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
capability.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  __user_cap_header_struct
 
struct  __user_cap_data_struct
 
struct  vfs_cap_data
 

Macros

#define _LINUX_CAPABILITY_VERSION_1   0x19980330
 
#define _LINUX_CAPABILITY_U32S_1   1
 
#define _LINUX_CAPABILITY_VERSION_2   0x20071026 /* deprecated - use v3 */
 
#define _LINUX_CAPABILITY_U32S_2   2
 
#define _LINUX_CAPABILITY_VERSION_3   0x20080522
 
#define _LINUX_CAPABILITY_U32S_3   2
 
#define VFS_CAP_REVISION_MASK   0xFF000000
 
#define VFS_CAP_REVISION_SHIFT   24
 
#define VFS_CAP_FLAGS_MASK   ~VFS_CAP_REVISION_MASK
 
#define VFS_CAP_FLAGS_EFFECTIVE   0x000001
 
#define VFS_CAP_REVISION_1   0x01000000
 
#define VFS_CAP_U32_1   1
 
#define XATTR_CAPS_SZ_1   (sizeof(__le32)*(1 + 2*VFS_CAP_U32_1))
 
#define VFS_CAP_REVISION_2   0x02000000
 
#define VFS_CAP_U32_2   2
 
#define XATTR_CAPS_SZ_2   (sizeof(__le32)*(1 + 2*VFS_CAP_U32_2))
 
#define XATTR_CAPS_SZ   XATTR_CAPS_SZ_2
 
#define VFS_CAP_U32   VFS_CAP_U32_2
 
#define VFS_CAP_REVISION   VFS_CAP_REVISION_2
 
#define _LINUX_CAPABILITY_VERSION   _LINUX_CAPABILITY_VERSION_1
 
#define _LINUX_CAPABILITY_U32S   _LINUX_CAPABILITY_U32S_1
 
#define CAP_CHOWN   0
 
#define CAP_DAC_OVERRIDE   1
 
#define CAP_DAC_READ_SEARCH   2
 
#define CAP_FOWNER   3
 
#define CAP_FSETID   4
 
#define CAP_KILL   5
 
#define CAP_SETGID   6
 
#define CAP_SETUID   7
 
#define CAP_SETPCAP   8
 
#define CAP_LINUX_IMMUTABLE   9
 
#define CAP_NET_BIND_SERVICE   10
 
#define CAP_NET_BROADCAST   11
 
#define CAP_NET_ADMIN   12
 
#define CAP_NET_RAW   13
 
#define CAP_IPC_LOCK   14
 
#define CAP_IPC_OWNER   15
 
#define CAP_SYS_MODULE   16
 
#define CAP_SYS_RAWIO   17
 
#define CAP_SYS_CHROOT   18
 
#define CAP_SYS_PTRACE   19
 
#define CAP_SYS_PACCT   20
 
#define CAP_SYS_ADMIN   21
 
#define CAP_SYS_BOOT   22
 
#define CAP_SYS_NICE   23
 
#define CAP_SYS_RESOURCE   24
 
#define CAP_SYS_TIME   25
 
#define CAP_SYS_TTY_CONFIG   26
 
#define CAP_MKNOD   27
 
#define CAP_LEASE   28
 
#define CAP_AUDIT_WRITE   29
 
#define CAP_AUDIT_CONTROL   30
 
#define CAP_SETFCAP   31
 
#define CAP_MAC_OVERRIDE   32
 
#define CAP_MAC_ADMIN   33
 
#define CAP_SYSLOG   34
 
#define CAP_WAKE_ALARM   35
 
#define CAP_BLOCK_SUSPEND   36
 
#define CAP_LAST_CAP   CAP_BLOCK_SUSPEND
 
#define cap_valid(x)   ((x) >= 0 && (x) <= CAP_LAST_CAP)
 
#define CAP_TO_INDEX(x)   ((x) >> 5) /* 1 << 5 == bits in __u32 */
 
#define CAP_TO_MASK(x)   (1 << ((x) & 31)) /* mask for indexed __u32 */
 

Typedefs

typedef struct
__user_cap_header_struct
cap_user_header_t
 
typedef struct
__user_cap_data_struct
cap_user_data_t
 

Macro Definition Documentation

#define _LINUX_CAPABILITY_U32S   _LINUX_CAPABILITY_U32S_1

Definition at line 85 of file capability.h.

#define _LINUX_CAPABILITY_U32S_1   1

Definition at line 32 of file capability.h.

#define _LINUX_CAPABILITY_U32S_2   2

Definition at line 35 of file capability.h.

#define _LINUX_CAPABILITY_U32S_3   2

Definition at line 38 of file capability.h.

#define _LINUX_CAPABILITY_VERSION   _LINUX_CAPABILITY_VERSION_1

Definition at line 84 of file capability.h.

#define _LINUX_CAPABILITY_VERSION_1   0x19980330

Definition at line 31 of file capability.h.

#define _LINUX_CAPABILITY_VERSION_2   0x20071026 /* deprecated - use v3 */

Definition at line 34 of file capability.h.

#define _LINUX_CAPABILITY_VERSION_3   0x20080522

Definition at line 37 of file capability.h.

#define CAP_AUDIT_CONTROL   30

Definition at line 313 of file capability.h.

#define CAP_AUDIT_WRITE   29

Definition at line 311 of file capability.h.

#define CAP_BLOCK_SUSPEND   36

Definition at line 344 of file capability.h.

#define CAP_CHOWN   0

POSIX-draft defined capabilities.

Definition at line 98 of file capability.h.

#define CAP_DAC_OVERRIDE   1

Definition at line 104 of file capability.h.

#define CAP_DAC_READ_SEARCH   2

Definition at line 110 of file capability.h.

#define CAP_FOWNER   3

Definition at line 116 of file capability.h.

#define CAP_FSETID   4

Definition at line 125 of file capability.h.

#define CAP_IPC_LOCK   14

Definition at line 200 of file capability.h.

#define CAP_IPC_OWNER   15

Definition at line 204 of file capability.h.

#define CAP_KILL   5

Definition at line 131 of file capability.h.

#define CAP_LAST_CAP   CAP_BLOCK_SUSPEND

Definition at line 346 of file capability.h.

#define CAP_LEASE   28

Definition at line 309 of file capability.h.

#define CAP_LINUX_IMMUTABLE   9

Definition at line 163 of file capability.h.

#define CAP_MAC_ADMIN   33

Definition at line 332 of file capability.h.

#define CAP_MAC_OVERRIDE   32

Definition at line 323 of file capability.h.

#define CAP_MKNOD   27

Definition at line 305 of file capability.h.

#define CAP_NET_ADMIN   12

Definition at line 188 of file capability.h.

#define CAP_NET_BIND_SERVICE   10

Definition at line 168 of file capability.h.

#define CAP_NET_BROADCAST   11

Definition at line 172 of file capability.h.

#define CAP_NET_RAW   13

Definition at line 194 of file capability.h.

#define CAP_SETFCAP   31

Definition at line 315 of file capability.h.

#define CAP_SETGID   6

Definition at line 137 of file capability.h.

#define CAP_SETPCAP   8

Linux-specific capabilities

Definition at line 159 of file capability.h.

#define CAP_SETUID   7

Definition at line 142 of file capability.h.

#define CAP_SYS_ADMIN   21

Definition at line 263 of file capability.h.

#define CAP_SYS_BOOT   22

Definition at line 267 of file capability.h.

#define CAP_SYS_CHROOT   18

Definition at line 216 of file capability.h.

#define CAP_SYS_MODULE   16

Definition at line 207 of file capability.h.

#define CAP_SYS_NICE   23

Definition at line 276 of file capability.h.

#define CAP_SYS_PACCT   20

Definition at line 224 of file capability.h.

#define CAP_SYS_PTRACE   19

Definition at line 220 of file capability.h.

#define CAP_SYS_RAWIO   17

Definition at line 212 of file capability.h.

#define CAP_SYS_RESOURCE   24

Definition at line 290 of file capability.h.

#define CAP_SYS_TIME   25

Definition at line 296 of file capability.h.

#define CAP_SYS_TTY_CONFIG   26

Definition at line 301 of file capability.h.

#define CAP_SYSLOG   34

Definition at line 336 of file capability.h.

#define CAP_TO_INDEX (   x)    ((x) >> 5) /* 1 << 5 == bits in __u32 */

Definition at line 354 of file capability.h.

#define CAP_TO_MASK (   x)    (1 << ((x) & 31)) /* mask for indexed __u32 */

Definition at line 355 of file capability.h.

#define cap_valid (   x)    ((x) >= 0 && (x) <= CAP_LAST_CAP)

Definition at line 348 of file capability.h.

#define CAP_WAKE_ALARM   35

Definition at line 340 of file capability.h.

#define VFS_CAP_FLAGS_EFFECTIVE   0x000001

Definition at line 55 of file capability.h.

#define VFS_CAP_FLAGS_MASK   ~VFS_CAP_REVISION_MASK

Definition at line 54 of file capability.h.

#define VFS_CAP_REVISION   VFS_CAP_REVISION_2

Definition at line 67 of file capability.h.

#define VFS_CAP_REVISION_1   0x01000000

Definition at line 57 of file capability.h.

#define VFS_CAP_REVISION_2   0x02000000

Definition at line 61 of file capability.h.

#define VFS_CAP_REVISION_MASK   0xFF000000

Definition at line 52 of file capability.h.

#define VFS_CAP_REVISION_SHIFT   24

Definition at line 53 of file capability.h.

#define VFS_CAP_U32   VFS_CAP_U32_2

Definition at line 66 of file capability.h.

#define VFS_CAP_U32_1   1

Definition at line 58 of file capability.h.

#define VFS_CAP_U32_2   2

Definition at line 62 of file capability.h.

#define XATTR_CAPS_SZ   XATTR_CAPS_SZ_2

Definition at line 65 of file capability.h.

#define XATTR_CAPS_SZ_1   (sizeof(__le32)*(1 + 2*VFS_CAP_U32_1))

Definition at line 59 of file capability.h.

#define XATTR_CAPS_SZ_2   (sizeof(__le32)*(1 + 2*VFS_CAP_U32_2))

Definition at line 63 of file capability.h.

Typedef Documentation