Bug 2540774
| Summary: | selinux-policy update breaks SSH port forwarding to Unix sockets | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | nik <nikita> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 44 | CC: | dwalsh, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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
nik
2026-09-24 19:56:55 UTC
With allowing sshd-session write to a socket file on an arbitrary path we would significantly loosen the policy. I suggest using the /tmp path or creating a custom policy. > allowing sshd-session write to a socket file on an arbitrary path we would significantly loosen the policy Why? The access is performed by sshd-session that runs under the permissions of the logged in user. IIUC if the user can log in they can already access any socket that is accessible to them, so I'm not sure what are the security benefits of preventing sshd-session running as said user from forwarding a port to that socket. In other words, I can "hack around" the limitation using: - forward a local port to a remote TCP port (ssh -L 127.0.0.1:1234:127.0.0.1:1234) - run socat TCP-L:1234 UNIX:bla.sock to reach the socket (But the hack is less secure since other local users on the server can now access the socket too via the intermediate port.) > I suggest using the /tmp path This is less desirable for me since then the socket would become world-visible and I have to think about name collisions from other users. |