1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<def-group>
<definition class="compliance" id="ntpd_specify_multiple_servers" version="2">
{{{ oval_metadata("Multiple ntpd NTP Servers for time synchronization should be specified.", rule_title=rule_title) }}}
<criteria comment="ntp.conf conditions are met">
<criterion test_ref="test_ntpd_multiple_servers" />
</criteria>
</definition>
<ind:textfilecontent54_test check="all" check_existence="all_exist"
comment="Ensure more than one ntpd NTP server is set" id="test_ntpd_multiple_servers"
version="1">
<ind:object object_ref="obj_ntpd_multiple_servers" />
</ind:textfilecontent54_test>
<ind:textfilecontent54_object comment="Ensure more than one ntpd NTP server is set"
id="obj_ntpd_multiple_servers" version="1">
<ind:filepath>/etc/ntp.conf</ind:filepath>
<ind:pattern operation="pattern match">^([\s]*server[\s]+.+$){2,}$</ind:pattern>
<ind:instance datatype="int">1</ind:instance>
</ind:textfilecontent54_object>
</def-group>
|