1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
<def-group>
<definition class="inventory" id="installed_OS_is_ubuntu2404" version="1">
<metadata>
<title>Ubuntu 24.04 LTS</title>
<affected family="unix">
<platform>multi_platform_all</platform>
</affected>
<reference ref_id="cpe:/o:canonical:ubuntu_linux:24.04" source="CPE" />
<description>The operating system installed on the system is Ubuntu 24.04 LTS</description>
</metadata>
<criteria comment="current Ubuntu version is Noble" operator="AND">
<extend_definition comment="Ubuntu is installed" definition_ref="installed_OS_is_ubuntu" />
<criterion comment="Noble is installed" test_ref="test_ubuntu_noble" />
</criteria>
</definition>
<ind:textfilecontent54_test check="all" check_existence="at_least_one_exists" comment="Check Ubuntu version" id="test_ubuntu_noble" version="1">
<ind:object object_ref="obj_ubuntu_noble" />
</ind:textfilecontent54_test>
<ind:textfilecontent54_object id="obj_ubuntu_noble" version="1" comment="Check Ubuntu version">
<ind:filepath>/etc/lsb-release</ind:filepath>
<ind:pattern operation="pattern match">^DISTRIB_CODENAME=noble$</ind:pattern>
<ind:instance datatype="int">1</ind:instance>
</ind:textfilecontent54_object>
</def-group>
|