[RHEL6] Fix SSH remediation scripts to be case-insensitive
Current version of various SSH remediation scripts for RHEL-6
is searching (grep) and replacing (sed) particular /etc/ssh/sshd_config
configuration file's option in case-sensitive manner (searching
and replacing only strict matching exact case), therefore
having, e.g:
permitrootlogin yes
in /etc/ssh/sshd_config would end up (in current state) the 'PermitRootLogin no'
string to be appended at the end of the file, but keep the
root logins allowed (since first option present in /etc/ssh/sshd_config
is honoured by sshd).
The proposal changes searches and replacements for various SSH daemon
remediations to be case-insensitive, fixing this problem.
Please review.
Thank you && Regards, Jan.
--
Jan iankko Lieskovsky / Red Hat Security Technologies Team