Fix macro 'create_interactive_users_list_object' to also ignore users having /usr/sbin/nologin shell #13962
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
The
create_interactive_users_list_objectmacro doesn't exclude users having/usr/sbin/nologinas their shell.On RHEL, users may get
/sbin/nologinor/usr/sbin/nologin, depending on the package name, and for Dynamic Users, they seem to always get/usr/sbin/nologin.Rationale:
See Red Hat issue RHEL-118647
Review Hints:
Reproducer on RHEL9 is:
cockpit.socketunit and log into cockpitxccdf_org.ssgproject.content_rule_accounts_user_interactive_home_directory_definedruleResult is failure because of dynamic users having a different shell: