Add AlmaLinux 9 support

This commit is contained in:
Andrew Lukoshko 2026-07-16 13:31:58 +00:00 committed by root
parent f6444e2bde
commit 56f7e91f17
2 changed files with 7 additions and 4 deletions

View File

@ -37,8 +37,11 @@ find ./shared -type f -exec sed -i \
# silently falls through to the generic `else` branch of those rules (e.g.
# configure_custom_crypto_policy_cis drops NO-SSHWEAKCIPHERS/NO-SSHWEAKMACS/
# NO-WEAKMAC/NO-RPMSHA1, weakening the CIS crypto remediation vs the rhel9 base).
find ./linux_os -type d -name ensure_redhat_gpgkey_installed -prune -o -type f -exec sed -i \
-e '/if product in/ s/"rhel9"/"rhel9", "almalinux9"/g' {} \;
find ./linux_os ./shared -type d -name ensure_redhat_gpgkey_installed -prune -o -type f -exec sed -i \
-e '/if product in/ s/"rhel9"/"rhel9", "almalinux9"/g' \
-e "/if product in/ s/'rhel9'/'rhel9', 'almalinux9'/g" \
-e '/if product not in/ s/"rhel9"/"rhel9", "almalinux9"/g' \
-e "/if product not in/ s/'rhel9'/'rhel9', 'almalinux9'/g" {} \;
find ./linux_os ./shared -type d -name ensure_redhat_gpgkey_installed -prune -o -type f -exec sed -i -E \
-e 's/product == (["'\''])rhel9\1/(product == \1rhel9\1 or product == \1almalinux9\1)/g' {} \;

View File

@ -6,7 +6,7 @@
Name: scap-security-guide
Version: 0.1.81
Release: 1%{?dist}.alma.1
Release: 1%{?dist}.alma.2
Summary: Security guidance and baselines in SCAP formats
License: BSD-3-Clause
URL: https://github.com/ComplianceAsCode/content/
@ -107,7 +107,7 @@ rm %{buildroot}/%{_docdir}/%{name}/Contributors.md
%endif
%changelog
* Mon Jun 22 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 0.1.81-1.alma.1
* Thu Jul 16 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 0.1.81-1.alma.2
- Add AlmaLinux 9 support
* Mon Jun 01 2026 Jan Černý <jcerny@redhat.com> - 0.1.81-1