blob: 8676603a6cee568e05645206e359a7ee98e41b44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
https://bugs.ntp.org/show_bug.cgi?id=2646
https://bugs.gentoo.org/533966
--- a/ntpd/ntpd.c
+++ b/ntpd/ntpd.c
@@ -1299,10 +1299,10 @@
*/
cap_t caps;
char *captext;
-
+
captext = (scan_addrs_once)
- ? "cap_sys_time=pe"
- : "cap_sys_time,cap_net_bind_service=pe";
+ ? "cap_ipc_lock,cap_sys_time=pe"
+ : "cap_ipc_lock,cap_sys_time,cap_net_bind_service=pe";
caps = cap_from_text(captext);
if (!caps) {
msyslog(LOG_ERR,
|