Bug 2228265 - SELinux is preventing snapd from 'connectto' accesses on the unix_stream_socket /run/user/1000/snapd-session-agent.socket.
Summary: SELinux is preventing snapd from 'connectto' accesses on the unix_stream_sock...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: snapd
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zygmunt Krynicki
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:85b684cc5a256768ecd5eb5541c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-01 21:04 UTC by phillip.jahelka
Modified: 2023-08-01 21:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.10 KB, text/plain)
2023-08-01 21:04 UTC, phillip.jahelka
no flags Details
File: os_info (699 bytes, text/plain)
2023-08-01 21:04 UTC, phillip.jahelka
no flags Details

Description phillip.jahelka 2023-08-01 21:04:04 UTC
Description of problem:
Start the Slack Snap generated an SELinux report
SELinux is preventing snapd from 'connectto' accesses on the unix_stream_socket /run/user/1000/snapd-session-agent.socket.

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

If you believe that snapd should be allowed connectto access on the snapd-session-agent.socket 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 'snapd' --raw | audit2allow -M my-snapd
# semodule -X 300 -i my-snapd.pp

Additional Information:
Source Context                system_u:system_r:snappy_t:s0
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-
                              s0:c0.c1023
Target Objects                /run/user/1000/snapd-session-agent.socket [
                              unix_stream_socket ]
Source                        snapd
Source Path                   snapd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.21-1.fc38.noarch
Local Policy RPM              snapd-selinux-2.58.3-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.4.6-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Jul 24 20:51:12 UTC 2023
                              x86_64
Alert Count                   1
First Seen                    2023-08-01 14:02:22 PDT
Last Seen                     2023-08-01 14:02:22 PDT
Local ID                      d1ff1553-01a3-416b-b969-51c2ca53e489

Raw Audit Messages
type=AVC msg=audit(1690923742.687:318): avc:  denied  { connectto } for  pid=6307 comm="snapd" path="/run/user/1000/snapd-session-agent.socket" scontext=system_u:system_r:snappy_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_stream_socket permissive=1


Hash: snapd,snappy_t,unconfined_t,unix_stream_socket,connectto

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

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing snapd from 'connectto' accesses on the unix_stream_socket /run/user/1000/snapd-session-agent.socket.
package:        selinux-policy-targeted-38.21-1.fc38.noarch
component:      snapd
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.4.6-200.fc38.x86_64
comment:        Start the Slack Snap generated an SELinux report
component:      snapd



Potential duplicate: bug 2104281

Comment 1 phillip.jahelka 2023-08-01 21:04:06 UTC
Created attachment 1981230 [details]
File: description

Comment 2 phillip.jahelka 2023-08-01 21:04:07 UTC
Created attachment 1981231 [details]
File: os_info


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