Bug 2221396 - SELinux is preventing snapperd from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.DynamicUser.
Summary: SELinux is preventing snapperd from 'connectto' accesses on the unix_stream_s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 38
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e9f08c6f268e57664ea4b08e9ea...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-08 17:49 UTC by James
Modified: 2023-07-18 01:24 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-38.21-1.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-18 01:24:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.03 KB, text/plain)
2023-07-08 17:49 UTC, James
no flags Details
File: os_info (699 bytes, text/plain)
2023-07-08 17:49 UTC, James
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 1777 0 None open Allow snapperd connect to kernel over a unix domain stream socket 2023-07-11 13:18:30 UTC

Description James 2023-07-08 17:49:11 UTC
Description of problem:
SELinux is preventing snapperd from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.DynamicUser.

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

If you believe that snapperd 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 'snapperd' --raw | audit2allow -M my-snapperd
# semodule -X 300 -i my-snapperd.pp

Additional Information:
Source Context                system_u:system_r:snapperd_t:s0
Target Context                system_u:system_r:kernel_t:s0
Target Objects                /run/systemd/userdb/io.systemd.DynamicUser [
                              unix_stream_socket ]
Source                        snapperd
Source Path                   snapperd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.20-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.20-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.3.11-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sun Jul 2 13:17:31 UTC 2023 x86_64
Alert Count                   1
First Seen                    2023-07-08 08:24:08 EDT
Last Seen                     2023-07-08 08:24:08 EDT
Local ID                      860cf483-d975-4b6d-aebf-f872e5beecb3

Raw Audit Messages
type=AVC msg=audit(1688819048.481:309): avc:  denied  { connectto } for  pid=8009 comm="snapperd" path="/run/systemd/userdb/io.systemd.DynamicUser" scontext=system_u:system_r:snapperd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_stream_socket permissive=0


Hash: snapperd,snapperd_t,kernel_t,unix_stream_socket,connectto

Version-Release number of selected component:
selinux-policy-targeted-38.20-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing snapperd from 'connectto' accesses on the unix_stream_socket /run/systemd/userdb/io.systemd.DynamicUser.
package:        selinux-policy-targeted-38.20-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.3.11-200.fc38.x86_64
component:      selinux-policy

Comment 1 James 2023-07-08 17:49:14 UTC
Created attachment 1974768 [details]
File: description

Comment 2 James 2023-07-08 17:49:15 UTC
Created attachment 1974769 [details]
File: os_info

Comment 3 Fedora Update System 2023-07-14 11:59:57 UTC
FEDORA-2023-2663818afd has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2663818afd

Comment 4 Fedora Update System 2023-07-15 01:32:35 UTC
FEDORA-2023-2663818afd has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-2663818afd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-2663818afd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-07-18 01:24:32 UTC
FEDORA-2023-2663818afd has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


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