Go to the documentation of this file.
13 #ifndef _UAPI_LINUX_CAPABILITY_H
14 #define _UAPI_LINUX_CAPABILITY_H
16 #include <linux/types.h>
31 #define _LINUX_CAPABILITY_VERSION_1 0x19980330
32 #define _LINUX_CAPABILITY_U32S_1 1
34 #define _LINUX_CAPABILITY_VERSION_2 0x20071026
35 #define _LINUX_CAPABILITY_U32S_2 2
37 #define _LINUX_CAPABILITY_VERSION_3 0x20080522
38 #define _LINUX_CAPABILITY_U32S_3 2
52 #define VFS_CAP_REVISION_MASK 0xFF000000
53 #define VFS_CAP_REVISION_SHIFT 24
54 #define VFS_CAP_FLAGS_MASK ~VFS_CAP_REVISION_MASK
55 #define VFS_CAP_FLAGS_EFFECTIVE 0x000001
57 #define VFS_CAP_REVISION_1 0x01000000
58 #define VFS_CAP_U32_1 1
59 #define XATTR_CAPS_SZ_1 (sizeof(__le32)*(1 + 2*VFS_CAP_U32_1))
61 #define VFS_CAP_REVISION_2 0x02000000
62 #define VFS_CAP_U32_2 2
63 #define XATTR_CAPS_SZ_2 (sizeof(__le32)*(1 + 2*VFS_CAP_U32_2))
65 #define XATTR_CAPS_SZ XATTR_CAPS_SZ_2
66 #define VFS_CAP_U32 VFS_CAP_U32_2
67 #define VFS_CAP_REVISION VFS_CAP_REVISION_2
84 #define _LINUX_CAPABILITY_VERSION _LINUX_CAPABILITY_VERSION_1
85 #define _LINUX_CAPABILITY_U32S _LINUX_CAPABILITY_U32S_1
104 #define CAP_DAC_OVERRIDE 1
110 #define CAP_DAC_READ_SEARCH 2
159 #define CAP_SETPCAP 8
163 #define CAP_LINUX_IMMUTABLE 9
168 #define CAP_NET_BIND_SERVICE 10
172 #define CAP_NET_BROADCAST 11
188 #define CAP_NET_ADMIN 12
194 #define CAP_NET_RAW 13
200 #define CAP_IPC_LOCK 14
204 #define CAP_IPC_OWNER 15
207 #define CAP_SYS_MODULE 16
212 #define CAP_SYS_RAWIO 17
216 #define CAP_SYS_CHROOT 18
220 #define CAP_SYS_PTRACE 19
224 #define CAP_SYS_PACCT 20
263 #define CAP_SYS_ADMIN 21
267 #define CAP_SYS_BOOT 22
276 #define CAP_SYS_NICE 23
290 #define CAP_SYS_RESOURCE 24
296 #define CAP_SYS_TIME 25
301 #define CAP_SYS_TTY_CONFIG 26
311 #define CAP_AUDIT_WRITE 29
313 #define CAP_AUDIT_CONTROL 30
315 #define CAP_SETFCAP 31
323 #define CAP_MAC_OVERRIDE 32
332 #define CAP_MAC_ADMIN 33
336 #define CAP_SYSLOG 34
340 #define CAP_WAKE_ALARM 35
344 #define CAP_BLOCK_SUSPEND 36
346 #define CAP_LAST_CAP CAP_BLOCK_SUSPEND
348 #define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP)
354 #define CAP_TO_INDEX(x) ((x) >> 5)
355 #define CAP_TO_MASK(x) (1 << ((x) & 31))