Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

fix: Amazon linux build #279

Merged
merged 3 commits into from
May 8, 2020
Merged

fix: Amazon linux build #279

merged 3 commits into from
May 8, 2020

Conversation

kostasns
Copy link
Contributor

@kostasns kostasns commented May 8, 2020

Amazon linux is a peculiar distribution as its os_family is RedHat, but distribution_major_version is 2, which successfully met the conditional in tests and did not generate SSH keys which caused the role to fail validating the sshd_config against non existing files.

The same condition was met in the template itself for UsePrivilegeSeparation directive, incorrectly setting the value and causing sshd-16 inspect check to fail.

This PR addresses both of these issues returning Amazon linux based build to green.

Kostas added 3 commits May 8, 2020 16:12
Signed-off-by: Kostas <kpa@tiatechnology.com>
Signed-off-by: Kostas <kpa@tiatechnology.com>
…with major version lower than 6

Signed-off-by: Kostas <kpa@tiatechnology.com>
@rndmh3ro rndmh3ro merged commit e1688e4 into dev-sec:master May 8, 2020
@rndmh3ro
Copy link
Member

rndmh3ro commented May 8, 2020

Thank you very much! :)

@kostasns kostasns deleted the fix_amazon_build branch May 8, 2020 19:20
@kostasns
Copy link
Contributor Author

kostasns commented May 8, 2020

No problem :) I have a guess about the fedora fix as well, will test it out the other day :)

@rndmh3ro rndmh3ro added the patch label May 9, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants