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.
Change-Id: I747a8818762119eee63fa03d175b66ae4021f6da
Closes-Bug: #1685194
(cherry picked from commit 2cf232ae62
)
This commit is contained in:
parent
8248f89068
commit
a8afdd109b
|
@ -22,7 +22,7 @@ ClientAliveCountMax {{ security_sshd_client_alive_count_max }}
|
|||
# V-72245
|
||||
PrintLastLog yes
|
||||
{% endif %}
|
||||
{% if security_sshd_permit_root_login | bool %}
|
||||
{% if not (security_sshd_permit_root_login | bool) %}
|
||||
# V-72247
|
||||
PermitRootLogin no
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue