summaryrefslogtreecommitdiff
path: root/net-misc/ntp/files/ntp-4.2.8_p18-ipc-caps.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/ntp/files/ntp-4.2.8_p18-ipc-caps.patch')
-rw-r--r--net-misc/ntp/files/ntp-4.2.8_p18-ipc-caps.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-misc/ntp/files/ntp-4.2.8_p18-ipc-caps.patch b/net-misc/ntp/files/ntp-4.2.8_p18-ipc-caps.patch
new file mode 100644
index 000000000000..8676603a6cee
--- /dev/null
+++ b/net-misc/ntp/files/ntp-4.2.8_p18-ipc-caps.patch
@@ -0,0 +1,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,