You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mpurg I've tested the following fix and it works. Note that the following is just an example which represents all of the security policies that leverage a static filepath (e.g., /etc/ssh/sshd_config) instead of loading both the core config file and the files that are stored within the *.d location.
Note that line two is the difference.
OLD <ind:textfilecontent54_object id="oval:ssg-obj_sshd_disable_empty_passwords:obj:1" version="1"> <ind:filepath>/etc/ssh/sshd_config</ind:filepath> <ind:pattern operation="pattern match">^[ \t]*(?i)PermitEmptyPasswords(?-i)[ \t]+(.+?)[ \t]*(?:$|#)</ind:pattern> <ind:instance operation="greater than or equal" datatype="int">1</ind:instance> </ind:textfilecontent54_object>
FIX <ind:textfilecontent54_object id="oval:ssg-obj_sshd_disable_empty_passwords:obj:1" version="1"> <ind:filepath operation="pattern match">^\/etc\/ssh\/sshd_config(?:.d\/.*.conf)?$</ind:filepath> <ind:pattern operation="pattern match">^[ \t]*(?i)PermitEmptyPasswords(?-i)[ \t]+(.+?)[ \t]*(?:$|#)</ind:pattern> <ind:instance operation="greater than or equal" datatype="int">1</ind:instance> </ind:textfilecontent54_object>
Description of problem:
The following checks are only checking /etc/ssh/sshd_config and not the dropin files in /etc/ssh/sshd_config.d/ under Ubuntu 24.04:
SCAP Security Guide Version:
Nightly build (2025-04-08)
Operating System Version:
Ubuntu 24.04.
Steps to Reproduce:
Actual Results:
All checks are marked as failed.
Expected Results:
All checks are marked as pass.
Additional Information/Debugging Steps:
The text was updated successfully, but these errors were encountered: