1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
<def-group>
<definition class="compliance" id="chronyd_specify_remote_server" version="1">
{{{ oval_metadata("A remote NTP Server for time synchronization should be
specified (and dependencies are met)", rule_title=rule_title) }}}
<criteria comment="chrony.conf conditions are met">
<criterion test_ref="test_chronyd_remote_server" />
</criteria>
</definition>
<ind:textfilecontent54_test check="all" check_existence="at_least_one_exists"
comment="Ensure at least one NTP server is set" id="test_chronyd_remote_server"
version="1">
<ind:object object_ref="object_chronyd_remote_server" />
</ind:textfilecontent54_test>
<ind:textfilecontent54_object comment="Ensure at least one NTP server is set"
id="object_chronyd_remote_server" version="1">
<ind:filepath operation="pattern match">^({{{ chrony_conf_path }}}|{{{ chrony_d_path }}}.+\.conf)$</ind:filepath>
<ind:pattern operation="pattern match">^[\s]*(?:server|pool)[\s]+.+$</ind:pattern>
<ind:instance datatype="int">1</ind:instance>
</ind:textfilecontent54_object>
</def-group>
|