Skip to content

Commit

Permalink
Merge pull request #11353 from vojtapolasek/remove_obsolete_packages_…
Browse files Browse the repository at this point in the history
…from_pcidss_stabilizaton

[Stabilization] handle rules trying to remove no longer existing packages
  • Loading branch information
Mab879 authored Dec 6, 2023
2 parents a53ebbf + d6041d0 commit 459f0ab
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ template:
name: package_removed
vars:
pkgname: xinetd

{{% if product in ["rhel9"] %}}
warnings:
- general:
The package is not available in {{{ full_name }}}.
{{% endif %}}
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ template:
name: package_removed
vars:
pkgname: ypbind

{{% if product in ["rhel9"] %}}
warnings:
- general:
The package is not available in {{{ full_name }}}.
{{% endif %}}
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ template:
name: package_removed
vars:
pkgname: ypserv

{{% if product in ["rhel9"] %}}
warnings:
- general:
The package is not available in {{{ full_name }}}.
{{% endif %}}
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,9 @@ template:
name: package_removed
vars:
pkgname: rsh-server

{{% if product in ["rhel8", "rhel9"] %}}
warnings:
- general:
The package is not available in {{{ full_name }}}.
{{% endif %}}
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,9 @@ template:
pkgname@ubuntu1804: rsh-client
pkgname@ubuntu2004: rsh-client
pkgname@ubuntu2204: rsh-client

{{% if product in ["rhel8", "rhel9"] %}}
warnings:
- general:
The package is not available in {{{ full_name }}}.
{{% endif %}}
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ template:
name: package_removed
vars:
pkgname: talk-server

{{% if product in ["rhel8", "rhel9"] %}}
warnings:
- general:
The package is not available in {{{ full_name }}}.
{{% endif %}}
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ template:
name: package_removed
vars:
pkgname: talk

{{% if product in ["rhel8", "rhel9"] %}}
warnings:
- general:
The package is not available in {{{ full_name }}}.
{{% endif %}}
4 changes: 4 additions & 0 deletions products/rhel8/profiles/pci-dss.profile
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ selections:
- '!set_loopback_traffic'
- '!service_ntpd_enabled'
- '!timer_logrotate_enabled'
- '!package_talk_removed'
- '!package_talk-server_removed'
- '!package_rsh_removed'
- '!package_rsh-server_removed'
7 changes: 7 additions & 0 deletions products/rhel9/profiles/pci-dss.profile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ selections:
- '!set_ipv6_loopback_traffic'
- '!set_loopback_traffic'
- '!service_ntpd_enabled'
- '!package_ypserv_removed'
- '!package_ypbind_removed'
- '!package_talk_removed'
- '!package_talk-server_removed'
- '!package_xinetd_removed'
- '!package_rsh_removed'
- '!package_rsh-server_removed'
4 changes: 0 additions & 4 deletions tests/data/profile_stability/rhel8/pci-dss.profile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ selections:
- file_owner_etc_shadow
- accounts_passwords_pam_faillock_deny
- accounts_password_all_shadowed
- package_talk-server_removed
- accounts_root_gid_zero
- selinux_state
- audit_rules_time_clock_settime
Expand All @@ -85,7 +84,6 @@ selections:
- network_sniffer_disabled
- audit_rules_session_events
- package_dhcp_removed
- package_rsh_removed
- file_owner_cron_d
- sshd_set_idle_timeout
- file_groupowner_cron_weekly
Expand Down Expand Up @@ -213,7 +211,6 @@ selections:
- auditd_data_retention_space_left_action
- rsyslog_files_permissions
- file_owner_cron_monthly
- package_talk_removed
- file_permissions_cron_daily
- selinux_confinement_of_daemons
- sysctl_net_ipv4_conf_all_send_redirects
Expand Down Expand Up @@ -245,7 +242,6 @@ selections:
- rpm_verify_hashes
- file_owner_cron_allow
- file_permissions_sshd_pub_key
- package_rsh-server_removed
- dconf_gnome_disable_automount
- gid_passwd_group_same
- package_xinetd_removed
Expand Down

0 comments on commit 459f0ab

Please sign in to comment.