Fix logic error
if security_sshd_permit_root_login is not set to yes, we should
override this and template a "no", instead of templating a "no"
when the value is set to yes.
Conflicts:
templates/sshd_config_block.j2
Change-Id: I747a8818762119eee63fa03d175b66ae4021f6da
Closes-Bug: #1685194
(cherry picked from commit 2cf232ae62
)
This commit is contained in:
parent
468ea4d1ce
commit
f4a60c909d
|
@ -22,7 +22,7 @@ ClientAliveCountMax {{ security_sshd_client_alive_count_max }}
|
|||
# RHEL-07-040301
|
||||
PrintLastLog yes
|
||||
{% endif %}
|
||||
{% if security_sshd_permit_root_login | bool %}
|
||||
{% if not (security_sshd_permit_root_login | bool) %}
|
||||
# RHEL-07-040310
|
||||
PermitRootLogin no
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue