Skip to content

Add OL9 to accounts_password template #13478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion shared/templates/accounts_password/ansible.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# disruption = low
- (xccdf-var var_password_pam_{{{ VARIABLE }}})

{{% if product == "ol8" or 'rhel' in product %}}
{{% if product in ["ol8","ol9"] or 'rhel' in product %}}
- name: {{{ rule_title }}} - Find pwquality.conf.d files
ansible.builtin.find:
paths: /etc/security/pwquality.conf.d/
Expand Down
2 changes: 1 addition & 1 deletion shared/templates/accounts_password/bash.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{{{ bash_instantiate_variables("var_password_pam_" ~ VARIABLE) }}}

{{% if product == "ol8" or 'rhel' in product %}}
{{% if product in ["ol8","ol9"] or 'rhel' in product %}}
if grep -sq {{{ VARIABLE }}} /etc/security/pwquality.conf.d/*.conf ; then
sed -i "/{{{ VARIABLE }}}/d" /etc/security/pwquality.conf.d/*.conf
fi
Expand Down
2 changes: 1 addition & 1 deletion shared/templates/accounts_password/oval.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{% if product == "ol8" or 'rhel' in product %}}
{{% if product in ["ol8","ol9"] or 'rhel' in product %}}
{{% set filepath_regex="^/etc/security/pwquality\.conf(\.d/[^/]+\.conf)?$" %}}
{{% else %}}
{{% set filepath_regex="^/etc/security/pwquality\.conf$" %}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# This test only applies to platforms that check the pwquality.conf.d directory
# platform = Oracle Linux 8,multi_platform_rhel
# platform = Oracle Linux 8,Oracle Linux 9,multi_platform_rhel
# variables = var_password_pam_{{{ VARIABLE }}}={{{ TEST_VAR_VALUE }}}

truncate -s 0 /etc/security/pwquality.conf
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# This test only applies to platforms that check the pwquality.conf.d directory
# platform = Oracle Linux 8,multi_platform_rhel
# platform = Oracle Linux 8,Oracle Linux 9,multi_platform_rhel
# variables = var_password_pam_{{{ VARIABLE }}}={{{ TEST_VAR_VALUE }}}

# This test will ensure that OVAL also checks the configuration in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# This test only applies to platforms that check the pwquality.conf.d directory
# platform = Oracle Linux 8
# platform = Oracle Linux 8, Oracle Linux 9
# variables = var_password_pam_{{{ VARIABLE }}}={{{ TEST_VAR_VALUE }}}

{{% if product == "ubuntu2404" %}}
Expand Down
Loading