forked from ansible-lockdown/RHEL9-CIS
improved tests and updated
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
485a85db76
commit
265423eb0a
11 changed files with 171 additions and 152 deletions
|
|
@ -46,6 +46,9 @@
|
|||
-w /etc/gshadow -p wa -k identity
|
||||
-w /etc/shadow -p wa -k identity
|
||||
-w /etc/security/opasswd -p wa -k identity
|
||||
-w /etc/nsswitch.conf -p wa -k identity
|
||||
-w /etc/pam.conf -p wa -k identity
|
||||
-w /etc/pam.d -p wa -k identity
|
||||
{% endif %}
|
||||
{% if rhel9cis_rule_6_3_3_9 %}
|
||||
-a always,exit -F arch=b64 -S chmod,fchmod,fchmodat -F auid>={{ prelim_min_int_uid }} -F auid!=unset -F key=perm_mod
|
||||
|
|
@ -83,7 +86,7 @@
|
|||
-a always,exit -F path=/usr/bin/setfacl -F perm=x -F auid>={{ prelim_min_int_uid }} -F auid!=unset -k perm_chng
|
||||
{% endif %}
|
||||
{% if rhel9cis_rule_6_3_3_17 %}
|
||||
-a always,exit -F path=/usr/bin/chacl -F perm=x -F auid>={{ prelim_min_int_uid }} -F auid!=unset -k priv_cmd
|
||||
-a always,exit -F path=/usr/bin/chacl -F perm=x -F auid>={{ prelim_min_int_uid }} -F auid!=unset -k priv_chng
|
||||
{% endif %}
|
||||
{% if rhel9cis_rule_6_3_3_18 %}
|
||||
-a always,exit -F path=/usr/sbin/usermod -F perm=x -F auid>={{ prelim_min_int_uid }} -F auid!=unset -k usermod
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# CIS Configurations
|
||||
# 5.3.3.2.3 Ensure password complexity is configured
|
||||
{% if rhel9cis_passwd_complex_option == minclass %}
|
||||
{% if rhel9cis_passwd_complex_option == 'minclass' %}
|
||||
minclass = {{ rhel9cis_passwd_minclass }}
|
||||
{ %endif %}
|
||||
{% if rhel9cis_passwd_complex_option == credits %}
|
||||
{% endif %}
|
||||
{% if rhel9cis_passwd_complex_option == 'credits' %}
|
||||
dcredit = {{rhel9cis_passwd_dcredit }}
|
||||
ucredit = {{ rhel9cis_passwd_ucredit }}
|
||||
ocredit = {{ rhel9cis_passwd_ocredit }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue