Bug 2513497 - gnupg2: systemd user unit files have wrong permissions 0755 instead of 0644
Summary: gnupg2: systemd user unit files have wrong permissions 0755 instead of 0644
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnupg2
Version: 45
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Jakub Jelen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-10 14:00 UTC by Petr Sklenar
Modified: 2026-08-10 16:10 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-08-10 16:10:40 UTC
Type: ---
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)

Description Petr Sklenar 2026-08-10 14:00:59 UTC
Description of problem:
Systemd user unit files shipped by gnupg2 subpackages (dirmngr, gpg-agent, keyboxd) have executable permissions (0755) instead of the required 0644.

Per Fedora Packaging Guidelines for Systemd:
"Unit files and drop-ins must be world-readable (i.e. mode 0644)"
https://docs.fedoraproject.org/en-US/packaging-guidelines/Systemd/

Version-Release number of selected component:
gnupg2-2.4.9-17.fc45.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install gnupg2
2. Run: stat -c "%a %n" /usr/lib/systemd/user/gpg-agent.service /usr/lib/systemd/user/gpg-agent.socket /usr/lib/systemd/user/gpg-agent-browser.socket /usr/lib/systemd/user/gpg-agent-extra.socket /usr/lib/systemd/user/gpg-agent-ssh.socket /usr/lib/systemd/user/dirmngr.service /usr/lib/systemd/user/dirmngr.socket /usr/lib/systemd/user/keyboxd.service /usr/lib/systemd/user/keyboxd.socket

Actual Results:
  755 /usr/lib/systemd/user/gpg-agent.service
  755 /usr/lib/systemd/user/gpg-agent.socket
  755 /usr/lib/systemd/user/gpg-agent-browser.socket
  755 /usr/lib/systemd/user/gpg-agent-extra.socket
  755 /usr/lib/systemd/user/gpg-agent-ssh.socket
  755 /usr/lib/systemd/user/dirmngr.service
  755 /usr/lib/systemd/user/dirmngr.socket
  755 /usr/lib/systemd/user/keyboxd.service
  755 /usr/lib/systemd/user/keyboxd.socket

Expected Results:
All nine unit files should have mode 0644.

Additional info:
- Tested on: VM installed from:
https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20260807.n.0/compose/Workstation/x86_64/iso/Fedora-Workstation-Live-Rawhide-20260807.n.0.x86_64.iso


Note You need to log in before you can comment on or make changes to this bug.