-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rule clean_components_post_updating to sle micro 5 stig profile
- Loading branch information
Showing
6 changed files
with
35 additions
and
10 deletions.
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
4 changes: 2 additions & 2 deletions
4
linux_os/guide/system/software/updating/clean_components_post_updating/ansible/shared.yml
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
4 changes: 2 additions & 2 deletions
4
linux_os/guide/system/software/updating/clean_components_post_updating/bash/shared.sh
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
24 changes: 24 additions & 0 deletions
24
linux_os/guide/system/software/updating/clean_components_post_updating/oval/slmicro5.xml
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="compliance" id="clean_components_post_updating" version="1"> | ||
<metadata> | ||
<title>Ensure Zypper Removes Previous Package Versions</title> | ||
<affected family="unix"> | ||
<platform>SUSE Linux Enterprise Micro 5</platform> | ||
</affected> | ||
<description>The solver.upgradeRemoveDroppedPackages option should be used to ensure that old | ||
versions of software components are removed after updating.</description> | ||
</metadata> | ||
<criteria> | ||
<criterion comment="check value of solver.upgradeRemoveDroppedPackages in /etc/zypp/zypp.conf" test_ref="test_zypp_clean_components_post_updating" /> | ||
</criteria> | ||
</definition> | ||
<ind:textfilecontent54_test check="all" check_existence="all_exist" comment="check value of solver.upgradeRemoveDroppedPackages in /etc/zypp/zypp.conf" id="test_zypp_clean_components_post_updating" version="1"> | ||
<ind:object object_ref="object_zypp_clean_components_post_updating" /> | ||
</ind:textfilecontent54_test> | ||
<ind:textfilecontent54_object id="object_zypp_clean_components_post_updating" comment="solver.upgradeRemoveDroppedPackages set in /etc/zypp/zypp.conf" version="1"> | ||
<ind:filepath>/etc/zypp/zypp.conf</ind:filepath> | ||
<ind:pattern operation="pattern match">^solver.upgradeRemoveDroppedPackages\s*=\s*(?i)true(?-i)\s*$</ind:pattern> | ||
<ind:instance datatype="int" operation="equals">1</ind:instance> | ||
</ind:textfilecontent54_object> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,6 @@ CCE-93710-2 | |
CCE-93713-6 | ||
CCE-93711-0 | ||
CCE-93712-8 | ||
CCE-93720-1 | ||
CCE-93721-9 | ||
CCE-93722-7 | ||
CCE-93723-5 | ||
|