diff --git a/controls/2_2_special_purpose_services.rb b/controls/2_2_special_purpose_services.rb index 66e26bf..308e63d 100644 --- a/controls/2_2_special_purpose_services.rb +++ b/controls/2_2_special_purpose_services.rb @@ -73,6 +73,10 @@ its(:content) { should match(/^RUNASUSER=ntp\s*(?:#.*)?$/) } end + describe file('/etc/init.d/ntpd') do + its(:content) { should match(/daemon\s+(\S+\s+)-u ntp:ntp(?:\s+|\s?")/) } + end + describe file('/etc/sysconfig/ntpd') do its(:content) { should match(/^OPTIONS="(?:.)?-u ntp:ntp\s*(?:.)?"\s*(?:#.*)?$/) } end