Bug 2405280

Summary: SELinux is preventing blocking-1 from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.DynamicUser.
Product: [Fedora] Fedora Reporter: hannes <johannes.lips>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: dwalsh, johannes.lips, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c4dc79005345c934ac26646bf38087cbedd2cf739398f3b34d38acb7dd0bf757;VARIANT_ID=xfce;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-11-05 12:39:50 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 hannes 2025-10-21 05:28:04 UTC
Description of problem:
Opening pictures in Xfce with ristretto triggers this bug everytime.
SELinux is preventing blocking-1 from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.DynamicUser.

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

If you believe that blocking-1 should be allowed connectto access on the io.systemd.DynamicUser unix_stream_socket 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-1' --raw | audit2allow -M my-blocking1
# semodule -X 300 -i my-blocking1.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                system_u:system_r:init_t:s0
Target Objects                /run/systemd/userdb/io.systemd.DynamicUser [
                              unix_stream_socket ]
Source                        blocking-1
Source Path                   blocking-1
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-42.13-1.fc43.noarch
Local Policy RPM              selinux-policy-targeted-42.13-1.fc43.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.17.3-300.fc43.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Wed Oct 15 14:19:22 UTC 2025
                              x86_64
Alert Count                   3
First Seen                    2025-10-20 21:16:26 CEST
Last Seen                     2025-10-21 07:26:37 CEST
Local ID                      6daa6cd9-9f82-4a8f-ae23-68c461a2c58e

Raw Audit Messages
type=AVC msg=audit(1761024397.532:1637): avc:  denied  { connectto } for  pid=860850 comm="blocking-1" path="/run/systemd/userdb/io.systemd.DynamicUser" scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:system_r:init_t:s0 tclass=unix_stream_socket permissive=0


Hash: blocking-1,thumb_t,init_t,unix_stream_socket,connectto

Version-Release number of selected component:
selinux-policy-targeted-42.13-1.fc43.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing blocking-1 from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.DynamicUser.
package:        selinux-policy-targeted-42.13-1.fc43.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.17.3-300.fc43.x86_64
comment:        Opening pictures in Xfce with ristretto triggers this bug everytime.
component:      selinux-policy

Comment 1 hannes 2025-10-21 05:28:07 UTC
Created attachment 2110327 [details]
File: description

Comment 2 hannes 2025-10-21 05:28:08 UTC
Created attachment 2110328 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-10-21 08:09:05 UTC
Hi,

What process is blocking-1?

Comment 4 hannes 2025-10-21 09:08:23 UTC
I think the source process is bwrap.
SELinux is preventing bwrap from sys_admin access on the cap_userns labeled thumb_t.

Comment 5 Zdenek Pytela 2025-11-05 12:39:50 UTC

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