Skip to content

Commit

Permalink
catch package_rsync_removed in waivers, for RHEL-7
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Jaburek <[email protected]>
  • Loading branch information
comps authored and mildas committed Feb 28, 2024
1 parent a86fc6b commit 56dc268
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/remediation.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def excludes():
]

# Host hardenings
if re.fullmatch('/hardening/host-os/.*', test_name):
if versions.rhel == 7 and re.fullmatch('/hardening/host-os/.*', test_name):
rules += [
# required by TMT
# required by TMT, see waivers
'package_rsync_removed',
]

Expand Down
5 changes: 5 additions & 0 deletions conf/waivers-upstream
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# see conf/remediation.py
/hardening/.*/accounts_password_set_max_life_(existing|root)
True
# RHEL-7 only, because RHEL-8+ check for rsync-daemon,
# while TMT only needs the 'rsync' command executed via ssh,
# so remove the remediation exception + waiver on RHEL-8+
/hardening/host-os/oscap/[^/]+/package_rsync_removed
rhel == 7

# requires running firewalld (firewall-cmd) and NetworkManager,
# which are not available in their final form in the Anaconda environment
Expand Down

0 comments on commit 56dc268

Please sign in to comment.