components/ntp/patches/50-noserve.patch
author Brian Utterback <brian.utterback@oracle.com>
Fri, 16 Aug 2013 06:35:08 -0700
changeset 1467 f14b6c5766ca
permissions -rw-r--r--
15705382 SUNBT7031289 Update ntp to 4.2.7 16756358 Enable ASLR for NTP 14932716 SUNBT4031742 /etc/inet/ntp.client should include broadcastclient 15722546 SUNBT7055402 ipmp cause reachability issues for ntp4 daemon 15727250 SUNBT7064417 ntpd errors on some new system 15751447 SUNBT7106031 Solaris 11 restrict noserve doesn't work right 15785388 SUNBT7161189 ntpd starts on S 11 in a forked status with error "ntpd indicates n 15813516 SUNBT7195495 ntpd crashed with SIGFPE (Arithmetic Exception) 16090481 ntp version 4 daemon crashes in isc_interfaceiter_first() 16741686 "ntpd" v4.2.5 cannot accept/query interface names longer than 15 characters. 16978017 ntpd debug in Solaris 11.1does not write any output 17000189 NTP needs to increase its file descriptor limit. 17000601 ntpd should log a message when it exits abnormally.

See:
	http://bugzilla.ntp.org/show_bug.cgi?id=2367

--- ntpd/ntp_proto.c
+++ ntpd/ntp_proto.c
@@ -429,9 +429,11 @@ receive(
 		process_control(rbufp, restrict_mask);
 		return;
 	}
-	if (restrict_mask & RES_DONTSERVE) {
-		sys_restricted++;
-		return;				/* no time serve */
+	if (hismode == MODE_CLIENT) {
+		if (restrict_mask & RES_DONTSERVE) {
+			sys_restricted++;
+			return;				/* no time serve */
+		}
 	}
 
 	/*