Open SCAP Library: process58-capability.h Source File

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

process58-capability.h
1 /* map based on OVAL and /usr/include/linux/capability.h
2 * not all capabilities from capability.h are allowed in OVAL */
3 #define OVAL_5_8_MAX_CAP_ID 33
4 #define OVAL_5_11_MAX_CAP_ID 38
5 static const struct oscap_string_map CapabilityType[] = {
6 {0, "CAP_CHOWN"},
7 {1, "CAP_DAC_OVERRIDE"},
8 {2, "CAP_DAC_READ_SEARCH"},
9 {3, "CAP_FOWNER"},
10 {4, "CAP_FSETID"},
11 {5, "CAP_KILL"},
12 {6, "CAP_SETGID"},
13 {7, "CAP_SETUID"},
14 {8, "CAP_SETPCAP"},
15 {9, "CAP_LINUX_IMMUTABLE"},
16 {10, "CAP_NET_BIND_SERVICE"},
17 {11, "CAP_NET_BROADCAST"},
18 {12, "CAP_NET_ADMIN"},
19 {13, "CAP_NET_RAW"},
20 {14, "CAP_IPC_LOCK"},
21 {15, "CAP_IPC_OWNER"},
22 {16, "CAP_SYS_MODULE"},
23 {17, "CAP_SYS_RAWIO"},
24 {18, "CAP_SYS_CHROOT"},
25 {19, "CAP_SYS_PTRACE"},
26 {21, "CAP_SYS_ADMIN"},
27 {22, "CAP_SYS_BOOT"},
28 {23, "CAP_SYS_NICE"},
29 {24, "CAP_SYS_RESOURCE"},
30 {25, "CAP_SYS_TIME"},
31 {26, "CAP_SYS_TTY_CONFIG"},
32 {27, "CAP_MKNOD"},
33 {28, "CAP_LEASE"},
34 {29, "CAP_AUDIT_WRITE"},
35 {30, "CAP_AUDIT_CONTROL"},
36 {31, "CAP_SETFCAP"},
37 {32, "CAP_MAC_OVERRIDE"},
38 {33, "CAP_MAC_ADMIN"},
39 /* New capabilities in OVAL 5.11 */
40 {34, "CAP_SYS_PACCT"},
41 {35, "CAP_SYSLOG"},
42 {36, "CAP_WAKE_ALARM"},
43 {37, "CAP_BLOCK_SUSPEND"},
44 {38, "CAP_AUDIT_READ"},
45 {-1, NULL}
46 };
oscap_string_map
Define mapping between symbolic constant and its string representation.
Definition: util.h:309