srg_requirement: |-
    {{{ full_name }}} SSH server configuration files' permissions must not be modified.

vuldiscussion: |-
    Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct group to prevent unauthorized changes.

checktext: |-
    Verify the permissions of the "/etc/ssh/sshd_config" file with the following command:

    $ sudo rpm --verify openssh-server

    If the command returns any output, this is a finding.

fixtext: |-
    Run the following commands to restore the correct permissions of OpenSSH server configuration files:

    $ sudo dnf reinstall -y openssh-server
    $ rpm --setugids openssh-server
    $ rpm --setperms openssh-server
