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:
Jean-Philippe Evrard 2017-10-16 13:04:05 +00:00 committed by Jimmy McCrory
parent 468ea4d1ce
commit f4a60c909d
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}