From 6e2fb1570c1980428b2985b6550889fffc4fd7c7 Mon Sep 17 00:00:00 2001 From: Sebastien BLAISOT Date: Fri, 15 Oct 2021 16:19:51 +0200 Subject: [PATCH] FIX(2.2.1.4): Validate debian default ntp config (#118) --- bin/hardening/2.2.1.4_configure_ntp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hardening/2.2.1.4_configure_ntp.sh b/bin/hardening/2.2.1.4_configure_ntp.sh index 98aca64..e36fa50 100755 --- a/bin/hardening/2.2.1.4_configure_ntp.sh +++ b/bin/hardening/2.2.1.4_configure_ntp.sh @@ -20,7 +20,7 @@ DESCRIPTION="Configure Network Time Protocol (ntp). Check restrict parameters an HARDENING_EXCEPTION=ntp PACKAGE='ntp' -NTP_CONF_DEFAULT_PATTERN='^restrict -4 default (kod nomodify notrap nopeer noquery|ignore)' +NTP_CONF_DEFAULT_PATTERN='^restrict -4 default (kod nomodify notrap nopeer noquery|kod notrap nomodify nopeer noquery|ignore)' NTP_CONF_FILE='/etc/ntp.conf' NTP_INIT_PATTERN='RUNASUSER=ntp' NTP_INIT_FILE='/etc/init.d/ntp'