Lines 1-6
Link Here
|
1 |
--- src/procenv.c.orig 2014-08-16 19:06:54 UTC |
1 |
--- src/procenv.c.orig 2018-11-07 00:43:59 UTC |
2 |
+++ src/procenv.c |
2 |
+++ src/procenv.c |
3 |
@@ -5361,8 +5361,13 @@ show_capabilities_bsd (int fd) |
3 |
@@ -3249,7 +3249,7 @@ show_fds_generic (void) |
|
|
4 |
entry ("device", "%s", name ? name : NA_STR); |
5 |
|
6 |
section_open ("capabilities"); |
7 |
-#if defined (PROCENV_BSD) && defined (HAVE_SYS_CAPABILITY_H) |
8 |
+#if defined (PROCENV_BSD) && defined (HAVE_SYS_CAPSICUM_H) |
9 |
show_capabilities_bsd (fd); |
10 |
#endif |
11 |
section_close (); |
12 |
@@ -5377,7 +5377,7 @@ show_mounts_bsd (ShowMountType what) |
13 |
|
14 |
#endif |
15 |
|
16 |
-#if defined (PROCENV_BSD) && defined (HAVE_SYS_CAPABILITY_H) |
17 |
+#if defined (PROCENV_BSD) && defined (HAVE_SYS_CAPSICUM_H) |
18 |
void |
19 |
show_capabilities_bsd (int fd) |
20 |
{ |
21 |
@@ -5453,8 +5453,13 @@ show_capabilities_bsd (int fd) |
4 |
show_capsicum_cap (rights, CAP_KQUEUE); |
22 |
show_capsicum_cap (rights, CAP_KQUEUE); |
5 |
show_capsicum_cap (rights, CAP_KQUEUE_CHANGE); |
23 |
show_capsicum_cap (rights, CAP_KQUEUE_CHANGE); |
6 |
show_capsicum_cap (rights, CAP_KQUEUE_EVENT); |
24 |
show_capsicum_cap (rights, CAP_KQUEUE_EVENT); |
Lines 14-20
Link Here
|
14 |
show_capsicum_cap (rights, CAP_LISTEN); |
32 |
show_capsicum_cap (rights, CAP_LISTEN); |
15 |
show_capsicum_cap (rights, CAP_LOOKUP); |
33 |
show_capsicum_cap (rights, CAP_LOOKUP); |
16 |
show_capsicum_cap (rights, CAP_MAC_GET); |
34 |
show_capsicum_cap (rights, CAP_MAC_GET); |
17 |
@@ -5392,8 +5397,13 @@ show_capabilities_bsd (int fd) |
35 |
@@ -5484,8 +5489,13 @@ show_capabilities_bsd (int fd) |
18 |
show_capsicum_cap (rights, CAP_READ); |
36 |
show_capsicum_cap (rights, CAP_READ); |
19 |
#if __FreeBSD__ > 9 |
37 |
#if __FreeBSD__ > 9 |
20 |
show_capsicum_cap (rights, CAP_RECV); |
38 |
show_capsicum_cap (rights, CAP_RECV); |
Lines 28-30
Link Here
|
28 |
show_capsicum_cap (rights, CAP_SEEK); |
46 |
show_capsicum_cap (rights, CAP_SEEK); |
29 |
#if __FreeBSD__ > 9 |
47 |
#if __FreeBSD__ > 9 |
30 |
show_capsicum_cap (rights, CAP_SEEK_TELL); |
48 |
show_capsicum_cap (rights, CAP_SEEK_TELL); |
|
|
49 |
@@ -5513,7 +5523,7 @@ out: |
50 |
/* clang requires this */ |
51 |
return; |
52 |
} |
53 |
-#endif /* (PROCENV_BSD) && defined (HAVE_SYS_CAPABILITY_H) */ |
54 |
+#endif /* (PROCENV_BSD) && defined (HAVE_SYS_CAPSICUM_H) */ |
55 |
|
56 |
void |
57 |
get_priorities (void) |
58 |
@@ -7311,7 +7321,7 @@ show_capabilities (void) |
59 |
|
60 |
#if defined (PROCENV_LINUX) |
61 |
|
62 |
-#if defined (HAVE_SYS_CAPABILITY_H) |
63 |
+#if defined (HAVE_SYS_CAPSICUM_H) |
64 |
int |
65 |
get_capability_by_flag_type (cap_t cap_p, cap_flag_t type, cap_value_t cap) |
66 |
{ |
67 |
@@ -7324,12 +7334,12 @@ get_capability_by_flag_type (cap_t cap_p |
68 |
|
69 |
return ret < 0 ? ret : result; |
70 |
} |
71 |
-#endif /* HAVE_SYS_CAPABILITY_H */ |
72 |
+#endif /* HAVE_SYS_CAPSICUM_H */ |
73 |
|
74 |
void |
75 |
show_capabilities_linux (void) |
76 |
{ |
77 |
-#if defined (HAVE_SYS_CAPABILITY_H) |
78 |
+#if defined (HAVE_SYS_CAPSICUM_H) |
79 |
int last_known; |
80 |
cap_t caps; |
81 |
|
82 |
@@ -7341,7 +7351,7 @@ show_capabilities_linux (void) |
83 |
|
84 |
header ("capabilities"); |
85 |
|
86 |
-#if defined (HAVE_SYS_CAPABILITY_H) |
87 |
+#if defined (HAVE_SYS_CAPSICUM_H) |
88 |
caps = cap_get_proc (); |
89 |
|
90 |
entry ("count (CAP_LAST_CAP+1)", "%d", CAP_LAST_CAP+1); |
91 |
@@ -7495,11 +7505,11 @@ show_capabilities_linux (void) |
92 |
#endif |
93 |
|
94 |
out: |
95 |
-#endif /* HAVE_SYS_CAPABILITY_H */ |
96 |
+#endif /* HAVE_SYS_CAPSICUM_H */ |
97 |
footer (); |
98 |
} |
99 |
|
100 |
-#if defined (HAVE_SYS_CAPABILITY_H) |
101 |
+#if defined (HAVE_SYS_CAPSICUM_H) |
102 |
#ifdef PROCENV_NEED_LOCAL_CAP_GET_BOUND |
103 |
|
104 |
int cap_get_bound (cap_value_t cap) |
105 |
@@ -7512,7 +7522,7 @@ int cap_get_bound (cap_value_t cap) |
106 |
} |
107 |
|
108 |
#endif /* PROCENV_NEED_LOCAL_CAP_GET_BOUND */ |
109 |
-#endif /* HAVE_SYS_CAPABILITY_H */ |
110 |
+#endif /* HAVE_SYS_CAPSICUM_H */ |
111 |
|
112 |
void |
113 |
show_timezone_linux (void) |