Files
main/server/ntp/files/gentoo/ntp-4.2.8-ipc-caps.patch
2022-07-31 17:13:21 +03:00

17 lines
471 B
Diff

http://bugs.ntp.org/show_bug.cgi?id=2646
https://bugs.gentoo.org/533966
--- a/ntpd/ntpd.c
+++ a/ntpd/ntpd.c
@@ -971,8 +971,8 @@ getgroup:
char *captext;
captext = (0 != interface_interval)
- ? "cap_sys_time,cap_net_bind_service=pe"
- : "cap_sys_time=pe";
+ ? "cap_ipc_lock,cap_sys_time,cap_net_bind_service=pe"
+ : "cap_ipc_lock,cap_sys_time=pe";
caps = cap_from_text(captext);
if (!caps) {
msyslog(LOG_ERR,