Bug 2531046

Summary: SELinux is preventing accounts-daemon from 'read' accesses on the sock_file io.systemd.DynamicUser.
Product: [Fedora] Fedora Reporter: Luya Tshimbalanga <luya_tfz>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 45CC: dwalsh, luya_tfz, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e244cfc65e56dbe6caac980f86c8ea59ec75a646ea9731188eb77188bcdab0a4;VARIANT_ID=designsuite;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-09-10 09:48:52 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:
Attachments:
Description Flags
File: description
none
File: os_info none

Description Luya Tshimbalanga 2026-09-09 16:10:16 UTC
Description of problem:
The issue seeems occurring after logging in/
SELinux is preventing accounts-daemon from 'read' accesses on the sock_file io.systemd.DynamicUser.

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

If you believe that accounts-daemon should be allowed read access on the io.systemd.DynamicUser sock_file by default.
Then 
    You should report this as a bug.

    If you are certain this access is legitimate and not an intrusion attempt, you
    can generate a local policy module to allow it.
    Custom policy modules are not supported as they may weaken the system policy and expose the system to security vulnerabilities.
    
Do
# ausearch -c 'accounts-daemon' --raw | audit2allow -M my-accountsdaemon
# semodule -X 300 -i my-accountsdaemon.pp

Additional Information:
Source Context                system_u:system_r:accountsd_t:s0
Target Context                system_u:object_r:systemd_userdbd_runtime_t:s0
Target Objects                io.systemd.DynamicUser [ sock_file ]
Source                        accounts-daemon
Source Path                   accounts-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-45.16-1.fc45.noarch
Local Policy RPM              selinux-policy-targeted-45.16-1.fc45.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 7.2.4-300.fc45.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Sep 7 19:09:46 UTC 2026 x86_64
Alert Count                   20
First Seen                    2026-09-09 08:57:34 PDT
Last Seen                     2026-09-09 08:57:49 PDT
Local ID                      d3fd6fa1-cfca-47e5-936e-ab541a758a50

Raw Audit Messages
type=AVC msg=audit(1788969469.855:2082): avc:  denied  { read } for  pid=1017 comm="accounts-daemon" name="io.systemd.DynamicUser" dev="tmpfs" ino=1319 scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:object_r:systemd_userdbd_runtime_t:s0 tclass=sock_file permissive=0


Hash: accounts-daemon,accountsd_t,systemd_userdbd_runtime_t,sock_file,read

Version-Release number of selected component:
selinux-policy-targeted-45.16-1.fc45.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing accounts-daemon from 'read' accesses on the sock_file io.systemd.DynamicUser.
package:        selinux-policy-targeted-45.16-1.fc45.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         7.2.4-300.fc45.x86_64
comment:        The issue seeems occurring after logging in/
component:      selinux-policy

Comment 1 Luya Tshimbalanga 2026-09-09 16:10:18 UTC
Created attachment 2157305 [details]
File: description

Comment 2 Luya Tshimbalanga 2026-09-09 16:10:20 UTC
Created attachment 2157306 [details]
File: os_info

Comment 3 Zdenek Pytela 2026-09-10 09:48:52 UTC

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