Update Ubuntu STIG rules for library file permissions#14428
Open
mpurg wants to merge 1 commit intoComplianceAsCode:masterfrom
Open
Update Ubuntu STIG rules for library file permissions#14428mpurg wants to merge 1 commit intoComplianceAsCode:masterfrom
mpurg wants to merge 1 commit intoComplianceAsCode:masterfrom
Conversation
Contributor
Author
|
/retest-required |
jan-cerny
reviewed
Feb 19, 2026
|
|
||
| $ sudo find /lib /lib64 /usr/lib /usr/lib64 -type f -name '*.so*' ! -user root -exec chown root {} + | ||
| {{% else %}} | ||
| Configure the system-wide shared library files (/lib, /lib64, /usr/lib and /usr/lib64) to be protected from unauthorized access. |
Collaborator
There was a problem hiding this comment.
If the "else" branch is used this will be twice there.
| documentation_complete: true | ||
|
|
||
| {{% if 'ubuntu' in product -%}} | ||
| {{% set gid_description = ' or a required system account' -%}} |
Collaborator
There was a problem hiding this comment.
the gid_description is still used in ocil_clause
|
|
||
| $ sudo find -L /lib /lib64 /usr/lib /usr/lib64 ! -group root -exec ls -l {} \; | ||
|
|
||
| {{% if "ubuntu" not in product %}} |
Collaborator
There was a problem hiding this comment.
Do you want to change the condition in line 64 so that only .so files will be checked like in the other rule?
Library permission rules were updated to search .so files only, and no longer filter based on GID<1000. This aligns with Ubuntu 22.04 STIG V2R7 and 24.04 STIG V1R4.
ef8b6c5 to
7ab5cab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Library permission rules were updated to search .so files only, and no longer filter based on GID<1000.
Rationale:
Aligns with Ubuntu 22.04 STIG V2R7 and 24.04 STIG V1R4.