File ntp-memlock.patch of Package ntp

Index: ntp-4.2.8p3/ntpd/ntpd.c
===================================================================
--- ntp-4.2.8p3.orig/ntpd/ntpd.c	2015-06-29 22:13:50.000000000 +0200
+++ ntp-4.2.8p3/ntpd/ntpd.c	2015-09-22 15:01:20.294275573 +0200
@@ -796,9 +796,12 @@
 		/*
 		 * lock the process into memory
 		 */
+#if 0
+	  // Disabling this temporarily, see bnc#946386 .
 		if (!HAVE_OPT(SAVECONFIGQUIT) &&
 		    0 != mlockall(MCL_CURRENT|MCL_FUTURE))
 			msyslog(LOG_ERR, "mlockall(): %m");
+#endif
 # else	/* !HAVE_MLOCKALL follows */
 #  ifdef HAVE_PLOCK
 #   ifdef PROCLOCK
openSUSE Build Service is sponsored by