Skip to content

Ensure apt keyring files are readable under restrictive umask#68742

Open
dinopapaya wants to merge 1 commit intosaltstack:masterfrom
dinopapaya:fix-66731-apt-keyring-perms
Open

Ensure apt keyring files are readable under restrictive umask#68742
dinopapaya wants to merge 1 commit intosaltstack:masterfrom
dinopapaya:fix-66731-apt-keyring-perms

Conversation

@dinopapaya
Copy link

Fixes #66731

When UMASK is set to 077, pkgrepo.managed may create keyring files
with mode 0600, preventing the _apt user from reading the keyring
and causing apt update failures.

This change ensures keyring files are readable (0644) after creation.

@dinopapaya dinopapaya requested a review from a team as a code owner February 18, 2026 01:31
Copy link
Contributor

@twangboy twangboy left a comment

Choose a reason for hiding this comment

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

Please add a changelog and a test. Also, if this bug exists on 3006.x it should go there.

@twangboy twangboy added the test:full Run the full test suite label Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] pkgrepo.managed saving keys in /usr/share/keyrings/ with too restrictive permissions on hardens systems.

2 participants