Skip to content

Ensure apt keyring files are readable under restrictive umask#68742

Open
siddharthbandaru wants to merge 1 commit into
saltstack:masterfrom
siddharthbandaru:fix-66731-apt-keyring-perms
Open

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

Conversation

@siddharthbandaru
Copy link
Copy Markdown

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.

@siddharthbandaru siddharthbandaru requested a review from a team as a code owner February 18, 2026 01:31
Copy link
Copy Markdown
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
@dwoz dwoz force-pushed the fix-66731-apt-keyring-perms branch from adeb902 to b7cacfa Compare April 11, 2026 11:12
@twangboy twangboy added this to the Sulpher v3006.25 milestone May 4, 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