Bug 2503144

Summary: ssh into a fedora system SELinux is preventing sshd-session from create access on the sock_file
Product: [Fedora] Fedora Reporter: Barry Scott <barry>
Component: opensshAssignee: Dmitry Belyavskiy <dbelyavs>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 44CC: crypto-team, dbelyavs, dwalsh, jjelen, lkundrak, mattias.ellert, tm
Target Milestone: ---Flags: fedora-admin-xmlrpc: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-07-21 08:43:17 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 Barry Scott 2026-07-21 08:01:59 UTC
Installed versions

openssh-10.2p1-13.fc44.x86_64
openssh-server-10.2p1-13.fc44.x86_64
openssh-clients-10.2p1-13.fc44.x86_64

I have selinux in PERMISSIVE mode.

2026-07-21T08:57:00+01:00 systemd[1]: Started dbus-:1.3-org.fedoraproject.SetroubleshootPrivileged.
2026-07-21T08:57:00+01:00 setroubleshoot[14637]: SELinux is preventing sshd-session from create access on the sock_file s.HrVr8KuOeV.sshd.5yWzvKjBT8. For complete SELinux messages run: sealert -l 763e2241-c6ce-440f-bdab-8b74255dfe7c
2026-07-21T08:57:00+01:00 setroubleshoot[14637]: SELinux is preventing sshd-session from create access on the sock_file s.HrVr8KuOeV.sshd.5yWzvKjBT8.

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

                                                 If you believe that sshd-session should be allowed create access on the s.HrVr8KuOeV.sshd.5yWzvKjBT8 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 'sshd-session' --raw | audit2allow -M my-sshdsession
                                                 # semodule -X 300 -i my-sshdsession.pp


Reproducible: Always

Steps to Reproduce:
1.ssh into a Fedora system
2.selinux error is logged.
Actual Results:
selinux alert raised

Expected Results:
no selinux errors

Comment 1 Dmitry Belyavskiy 2026-07-21 08:05:48 UTC
I suspect this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2502040

Could you please confirm and close if yes?

Comment 2 Barry Scott 2026-07-21 08:43:17 UTC
It's very likely a duplicate of 2502040
I'll close on that assumption.

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