mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
os_sshd_key_exchange_algorithm_configure.yaml does not have a fallback to adding the relevant line #290
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @noambernstein on GitHub.
Originally assigned to: @golbiga on GitHub.
Summary
os_sshd_key_exchange_algorithm_configure.yaml fails because there is no KexAlgorithms in sshd_config, and unlike the other sshd_config rules it does not fall back to appending such a line
Steps to reproduce
run build/PROFILE/PROFILE_compliance.sh, tell it to fix os_sshd_key_exchange_algorithm_configure, then run it again and see that it hasn't actually fixed it because there's no line to change with sed.
Operating System version
11.3.0
What is the current bug behavior?
When no KexAlgorithms entry is in /etc/ssh/sshd_config is present, a correct one is not added
What is the expected correct behavior?
When no KexAlgorithms entry is in /etc/ssh/sshd_config is present, a correct one is added
Possible fixes
ebca093853/rules/os/os_sshd_key_exchange_algorithm_configure.yaml (L20)needs a
grep ... || echo .... >> ....type behavior like, e.g.ebca093853/rules/os/os_ssh_fips_140_ciphers.yaml (L18)@golbiga commented on GitHub:
merged with
main