Skip to content

Comments

Update Ubuntu STIG rules for library file permissions#14428

Open
mpurg wants to merge 1 commit intoComplianceAsCode:masterfrom
mpurg:ubuntu_stig_library_perms
Open

Update Ubuntu STIG rules for library file permissions#14428
mpurg wants to merge 1 commit intoComplianceAsCode:masterfrom
mpurg:ubuntu_stig_library_perms

Conversation

@mpurg
Copy link
Contributor

@mpurg mpurg commented Feb 19, 2026

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.

@mpurg mpurg added Ubuntu Ubuntu product related. STIG STIG Benchmark related. labels Feb 19, 2026
@mpurg mpurg requested a review from dodys February 19, 2026 12:26
@mpurg
Copy link
Contributor Author

mpurg commented Feb 19, 2026

/retest-required

@mpurg mpurg added this to the 0.1.81 milestone 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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the "else" branch is used this will be twice there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, fixed

documentation_complete: true

{{% if 'ubuntu' in product -%}}
{{% set gid_description = ' or a required system account' -%}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the gid_description is still used in ocil_clause

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed, thanks!


$ sudo find -L /lib /lib64 /usr/lib /usr/lib64 ! -group root -exec ls -l {} \;

{{% if "ubuntu" not in product %}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to change the condition in line 64 so that only .so files will be checked like in the other rule?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added, thanks!

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.
@mpurg mpurg force-pushed the ubuntu_stig_library_perms branch from ef8b6c5 to 7ab5cab Compare February 19, 2026 14:33
Copy link
Contributor

@dodys dodys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

STIG STIG Benchmark related. Ubuntu Ubuntu product related.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants