File tree Expand file tree Collapse file tree 6 files changed +46
-42
lines changed Expand file tree Collapse file tree 6 files changed +46
-42
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ strace_SOURCES = \
33
33
block.c \
34
34
cacheflush.c \
35
35
capability.c \
36
+ caps0.h \
37
+ caps1.h \
36
38
chdir.c \
37
39
chmod.c \
38
40
clone.c \
Original file line number Diff line number Diff line change 2
2
3
3
/* these constants are the same as in <linux/capability.h> */
4
4
enum {
5
- CAP_CHOWN ,
6
- CAP_DAC_OVERRIDE ,
7
- CAP_DAC_READ_SEARCH ,
8
- CAP_FOWNER ,
9
- CAP_FSETID ,
10
- CAP_KILL ,
11
- CAP_SETGID ,
12
- CAP_SETUID ,
13
- CAP_SETPCAP ,
14
- CAP_LINUX_IMMUTABLE ,
15
- CAP_NET_BIND_SERVICE ,
16
- CAP_NET_BROADCAST ,
17
- CAP_NET_ADMIN ,
18
- CAP_NET_RAW ,
19
- CAP_IPC_LOCK ,
20
- CAP_IPC_OWNER ,
21
- CAP_SYS_MODULE ,
22
- CAP_SYS_RAWIO ,
23
- CAP_SYS_CHROOT ,
24
- CAP_SYS_PTRACE ,
25
- CAP_SYS_PACCT ,
26
- CAP_SYS_ADMIN ,
27
- CAP_SYS_BOOT ,
28
- CAP_SYS_NICE ,
29
- CAP_SYS_RESOURCE ,
30
- CAP_SYS_TIME ,
31
- CAP_SYS_TTY_CONFIG ,
32
- CAP_MKNOD ,
33
- CAP_LEASE ,
34
- CAP_AUDIT_WRITE ,
35
- CAP_AUDIT_CONTROL ,
36
- CAP_SETFCAP
5
+ #include "caps0.h"
37
6
};
38
7
39
- #include "xlat/capabilities .h"
8
+ #include "xlat/cap_mask0 .h"
40
9
41
10
/* these constants are CAP_TO_INDEX'ed constants from <linux/capability.h> */
42
11
enum {
43
- CAP_MAC_OVERRIDE ,
44
- CAP_MAC_ADMIN ,
45
- CAP_SYSLOG ,
46
- CAP_WAKE_ALARM ,
47
- CAP_BLOCK_SUSPEND ,
48
- CAP_AUDIT_READ
12
+ #include "caps1.h"
49
13
};
50
14
51
- #include "xlat/capabilities1 .h"
15
+ #include "xlat/cap_mask1 .h"
52
16
53
17
/* these constants are the same as in <linux/capability.h> */
54
18
enum {
@@ -107,12 +71,12 @@ static void
107
71
print_cap_bits (const uint32_t lo , const uint32_t hi )
108
72
{
109
73
if (lo || !hi )
110
- printflags (capabilities , lo , "CAP_???" );
74
+ printflags (cap_mask0 , lo , "CAP_???" );
111
75
112
76
if (hi ) {
113
77
if (lo )
114
78
tprints ("|" );
115
- printflags (capabilities1 , hi , "CAP_???" );
79
+ printflags (cap_mask1 , hi , "CAP_???" );
116
80
}
117
81
}
118
82
Original file line number Diff line number Diff line change
1
+ CAP_CHOWN ,
2
+ CAP_DAC_OVERRIDE ,
3
+ CAP_DAC_READ_SEARCH ,
4
+ CAP_FOWNER ,
5
+ CAP_FSETID ,
6
+ CAP_KILL ,
7
+ CAP_SETGID ,
8
+ CAP_SETUID ,
9
+ CAP_SETPCAP ,
10
+ CAP_LINUX_IMMUTABLE ,
11
+ CAP_NET_BIND_SERVICE ,
12
+ CAP_NET_BROADCAST ,
13
+ CAP_NET_ADMIN ,
14
+ CAP_NET_RAW ,
15
+ CAP_IPC_LOCK ,
16
+ CAP_IPC_OWNER ,
17
+ CAP_SYS_MODULE ,
18
+ CAP_SYS_RAWIO ,
19
+ CAP_SYS_CHROOT ,
20
+ CAP_SYS_PTRACE ,
21
+ CAP_SYS_PACCT ,
22
+ CAP_SYS_ADMIN ,
23
+ CAP_SYS_BOOT ,
24
+ CAP_SYS_NICE ,
25
+ CAP_SYS_RESOURCE ,
26
+ CAP_SYS_TIME ,
27
+ CAP_SYS_TTY_CONFIG ,
28
+ CAP_MKNOD ,
29
+ CAP_LEASE ,
30
+ CAP_AUDIT_WRITE ,
31
+ CAP_AUDIT_CONTROL ,
32
+ CAP_SETFCAP ,
Original file line number Diff line number Diff line change
1
+ CAP_MAC_OVERRIDE ,
2
+ CAP_MAC_ADMIN ,
3
+ CAP_SYSLOG ,
4
+ CAP_WAKE_ALARM ,
5
+ CAP_BLOCK_SUSPEND ,
6
+ CAP_AUDIT_READ ,
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments