Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10149 from vojtapolasek/idle_session_timeout_main
Change applicability of rules configuring idle session timeouts (going to master branch)
- Loading branch information
Showing
16 changed files
with
147 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: "cpe:/o:rhel:eq:9:0" | ||
title: "Operating System is RHEL and version equals 9.0" | ||
check_id: rhel9_equals_9_0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: "cpe:/o:rhel:ge:8:7" | ||
title: "Operating System is RHEL and version is greater than or equal to 8.7" | ||
check_id: rhel8_greater_equal_8_7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: "cpe:/o:rhel:le:8:5" | ||
title: "Operating System is RHEL and version is less than or equal to 8.5" | ||
check_id: rhel8_less_equal_8_5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<def-group> | ||
|
||
<definition class="inventory" id="installed_os_is_rhel" version="1"> | ||
{{{ oval_metadata("Installed OS is RHEL", affected_platforms=["multi_platform_all"]) }}} | ||
<criteria operator="AND"> | ||
<criterion comment="The operating system installed on the system is RHEL" | ||
test_ref="test_os_id_is_rhel" /> | ||
</criteria> | ||
</definition> | ||
|
||
<ind:textfilecontent54_test check="all" comment="ID in os-release is rhel" id="test_os_id_is_rhel" version="1"> | ||
<ind:object object_ref="obj_os_id_is_rhel" /> | ||
<ind:state state_ref="state_os_id_is_rhel" /> | ||
</ind:textfilecontent54_test> | ||
<ind:textfilecontent54_object id="obj_os_id_is_rhel" version="1"> | ||
<ind:filepath>/etc/os-release</ind:filepath> | ||
<ind:pattern operation="pattern match">^ID=["']?(\w+)["']?$</ind:pattern> | ||
<ind:instance operation="greater than or equal" datatype="int">1</ind:instance> | ||
</ind:textfilecontent54_object> | ||
<ind:textfilecontent54_state id="state_os_id_is_rhel" version="1"> | ||
<ind:subexpression operation="pattern match">rhel</ind:subexpression> | ||
</ind:textfilecontent54_state> | ||
|
||
</def-group> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<def-group> | ||
|
||
<definition class="inventory" id="rhel8_greater_equal_8_7" version="1"> | ||
{{{ oval_metadata("RHEL version greater or equal to 8.7", affected_platforms=["multi_platform_all"]) }}} | ||
<criteria operator="AND"> | ||
<extend_definition comment="The operating system installed on the system is RHEL" | ||
definition_ref="installed_os_is_rhel" /> | ||
<criterion comment="The version of operating system RHEL is greater than or equal 8.7" | ||
test_ref="test_rhel_version_id_is_gt_8_7" /> | ||
</criteria> | ||
</definition> | ||
|
||
<ind:textfilecontent54_test check="all" comment="VERSION_ID in os-release is greater than or equal to 8.7" id="test_rhel_version_id_is_gt_8_7" version="1"> | ||
<ind:object object_ref="obj_rhel_version_id_is_gt_8_7" /> | ||
<ind:state state_ref="state_rhel_version_id_is_gt_8_7" /> | ||
</ind:textfilecontent54_test> | ||
<ind:textfilecontent54_object id="obj_rhel_version_id_is_gt_8_7" version="1"> | ||
<ind:filepath>/etc/os-release</ind:filepath> | ||
<ind:pattern operation="pattern match">^VERSION_ID=["']?([\d\.]+)["']?$</ind:pattern> | ||
<ind:instance operation="greater than or equal" datatype="int">1</ind:instance> | ||
</ind:textfilecontent54_object> | ||
<ind:textfilecontent54_state id="state_rhel_version_id_is_gt_8_7" version="1"> | ||
<ind:subexpression datatype="evr_string" operation="greater than or equal">8.7</ind:subexpression> | ||
</ind:textfilecontent54_state> | ||
|
||
</def-group> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<def-group> | ||
|
||
<definition class="inventory" id="rhel8_less_equal_8_5" version="1"> | ||
{{{ oval_metadata("RHEL version less or equal to 8.5", affected_platforms=["multi_platform_all"]) }}} | ||
<criteria operator="AND"> | ||
<extend_definition comment="The operating system installed on the system is RHEL" | ||
definition_ref="installed_os_is_rhel" /> | ||
<criterion comment="The version of operating system RHEL is less than or equal 8.5" | ||
test_ref="test_rhel_version_id_is_lt_8_5" /> | ||
</criteria> | ||
</definition> | ||
|
||
<ind:textfilecontent54_test check="all" comment="VERSION_ID in os-release is less than or equal to 8.5" id="test_rhel_version_id_is_lt_8_5" version="1"> | ||
<ind:object object_ref="obj_rhel_version_id_is_lt_8_5" /> | ||
<ind:state state_ref="state_rhel_version_id_is_lt_8_5" /> | ||
</ind:textfilecontent54_test> | ||
<ind:textfilecontent54_object id="obj_rhel_version_id_is_lt_8_5" version="1"> | ||
<ind:filepath>/etc/os-release</ind:filepath> | ||
<ind:pattern operation="pattern match">^VERSION_ID=["']?([\d\.]+)["']?$</ind:pattern> | ||
<ind:instance operation="less than or equal" datatype="int">1</ind:instance> | ||
</ind:textfilecontent54_object> | ||
<ind:textfilecontent54_state id="state_rhel_version_id_is_lt_8_5" version="1"> | ||
<ind:subexpression datatype="evr_string" operation="less than or equal">8.5</ind:subexpression> | ||
</ind:textfilecontent54_state> | ||
|
||
</def-group> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<def-group> | ||
|
||
<definition class="inventory" id="rhel9_equals_9_0" version="1"> | ||
{{{ oval_metadata("RHEL version equals 9.0", affected_platforms=["multi_platform_all"]) }}} | ||
<criteria operator="AND"> | ||
<extend_definition comment="The operating system installed on the system is RHEL" | ||
definition_ref="installed_os_is_rhel" /> | ||
<criterion comment="The version of operating system RHEL equals 9.0" | ||
test_ref="test_rhel_version_id_is_eq_9_0" /> | ||
</criteria> | ||
</definition> | ||
|
||
<ind:textfilecontent54_test check="all" comment="VERSION_ID in os-release equals 9.0" id="test_rhel_version_id_is_eq_9_0" version="1"> | ||
<ind:object object_ref="obj_rhel_version_id_is_eq_9_0" /> | ||
<ind:state state_ref="state_rhel_version_id_is_eq_9_0" /> | ||
</ind:textfilecontent54_test> | ||
<ind:textfilecontent54_object id="obj_rhel_version_id_is_eq_9_0" version="1"> | ||
<ind:filepath>/etc/os-release</ind:filepath> | ||
<ind:pattern operation="pattern match">^VERSION_ID=["']?([\d\.]+)["']?$</ind:pattern> | ||
<ind:instance operation="greater than or equal" datatype="int">1</ind:instance> | ||
</ind:textfilecontent54_object> | ||
<ind:textfilecontent54_state id="state_rhel_version_id_is_eq_9_0" version="1"> | ||
<ind:subexpression datatype="evr_string" operation="equals">9.0</ind:subexpression> | ||
</ind:textfilecontent54_state> | ||
|
||
</def-group> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters