summaryrefslogtreecommitdiff
path: root/net-misc/ntp/files/ntp-4.2.8_p14-add_cap_ipc_lock.patch
blob: 183b6d8d475a74e6b28e0a33a9f56fc9b152f957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
https://bugs.gentoo.org/711530

--- ntp-4.2.8p14/ntpd/ntpd.c
+++ ntp-4.2.8p14/ntpd/ntpd.c
@@ -1189,7 +1189,7 @@
 		 *  drop privileges in this case.
 		 */
 		cap_t caps;
-		caps = cap_from_text("cap_sys_time,cap_setuid,cap_setgid,cap_sys_chroot,cap_net_bind_service=pe");
+		caps = cap_from_text("cap_ipc_lock,cap_sys_time,cap_setuid,cap_setgid,cap_sys_chroot,cap_net_bind_service=pe");
 		if ( ! caps) {
 			msyslog( LOG_ERR, "cap_from_text() failed: %m" );
 			exit(-1);