Bug 2412626

Summary: SELinux denial - io.systemd.DynamicUser
Product: [Fedora] Fedora Reporter: Michal Schorm <mschorm>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 43CC: dwalsh, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-11-06 09:20:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Schorm 2025-11-05 15:31:25 UTC
Encountered several times in the last days on my fresh F43 installation.
Reporting as it seems like some missing rule for systemd.

-----------------------------------

SELinux is preventing blocking-2 from write access on the sock_file io.systemd.DynamicUser.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that blocking-2 should be allowed write access on the io.systemd.DynamicUser sock_file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'blocking-2' --raw | audit2allow -M my-blocking2
# semodule -X 300 -i my-blocking2.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                system_u:object_r:systemd_userdbd_runtime_t:s0
Target Objects                io.systemd.DynamicUser [ sock_file ]
Source                        blocking-2
Source Path                   blocking-2
Port                          <Unknown>
Host                          FARAMOS-PC
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-42.14-1.fc43.noarch
Local Policy RPM              selinux-policy-targeted-42.14-1.fc43.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     FARAMOS-PC
Platform                      Linux FARAMOS-PC 6.17.6-300.fc43.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Wed Oct 29 20:10:51 UTC 2025
                              x86_64
Alert Count                   2
First Seen                    2025-11-05 15:40:53 CET
Last Seen                     2025-11-05 15:40:53 CET
Local ID                      91bb4a75-d2e2-472d-807d-494c1acd4baa

Raw Audit Messages
type=AVC msg=audit(1762353653.977:180): avc:  denied  { write } for  pid=7362 comm="blocking-2" name="io.systemd.DynamicUser" dev="tmpfs" ino=1328 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_userdbd_runtime_t:s0 tclass=sock_file permissive=0


Hash: blocking-2,thumb_t,systemd_userdbd_runtime_t,sock_file,write


Reproducible: Didn't try

Comment 1 Zdenek Pytela 2025-11-06 09:20:44 UTC

*** This bug has been marked as a duplicate of bug 2408906 ***