Skip to content

Commit

Permalink
Update platforms in test scenario scripts
Browse files Browse the repository at this point in the history
Aligned the platforms among all test scenario scripts, ensuring the
tests become applicable to main products. Also ensured two pass test
scripts with different control in order to confirm the control is not
considered during the OVAL assessment.
  • Loading branch information
marcusburghardt committed Aug 29, 2023
1 parent db690e4 commit 21ae1e1
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = authselect
# platform = Oracle Linux 8,Oracle Linux 9,Red Hat Enterprise Linux 8,Red Hat Enterprise Linux 9,multi_platform_fedora
# platform = multi_platform_fedora,Oracle Linux 8,Oracle Linux 9,Red Hat Enterprise Linux 8,Red Hat Enterprise Linux 9
# remediation = none

authselect create-profile hardening -b sssd
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# platform = multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7
# platform = multi_platform_sle,multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7

{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}}
{{%- if "sle" in product or "ubuntu" in product %}}
{{% set pam_lastlog_path = "/etc/pam.d/login" %}}
{{% else %}}
{{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# platform = multi_platform_all

{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}}
{{%- if "sle" in product or "ubuntu" in product %}}
{{% set pam_lastlog_path = "/etc/pam.d/login" %}}
{{% else %}}
{{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# platform = multi_platform_all

{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}}
{{%- if "sle" in product or "ubuntu" in product %}}
{{% set pam_lastlog_path = "/etc/pam.d/login" %}}
{{% else %}}
{{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}}
Expand All @@ -12,6 +12,6 @@ rm -f {{{ pam_lastlog_path }}}
cat <<EOF > {{{ pam_lastlog_path }}}
session optional pam_umask.so silent
session [success=1 default=ignore] pam_succeed_if.so service !~ gdm* service !~ su* quiet
session [default=1] pam_lastlog.so nowtmp showfailed
session required pam_lastlog.so nowtmp showfailed
session optional pam_lastlog.so noupdate showfailed
EOF
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# platform = multi_platform_fedora,multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7
# platform = multi_platform_sle,multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7

{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}}
{{%- if "sle" in product or "ubuntu" in product %}}
{{% set pam_lastlog_path = "/etc/pam.d/login" %}}
{{% else %}}
{{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# platform = multi_platform_all

{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}}
{{%- if "sle" in product or "ubuntu" in product %}}
{{% set pam_lastlog_path = "/etc/pam.d/login" %}}
{{% else %}}
{{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# platform = multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7
# platform = multi_platform_sle,multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7

{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}}
{{%- if "sle" in product or "ubuntu" in product %}}
{{% set pam_lastlog_path = "/etc/pam.d/login" %}}
{{% else %}}
{{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# platform = multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7
# platform = multi_platform_sle,multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7

{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}}
{{%- if "sle" in product or "ubuntu" in product %}}
{{% set pam_lastlog_path = "/etc/pam.d/login" %}}
{{% else %}}
{{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}}
Expand Down

0 comments on commit 21ae1e1

Please sign in to comment.