fedora-selinux / selinux-policy

selinux-policy for Fedora is a large patch off the mainline
GNU General Public License v2.0
164 stars 165 forks source link

Update ssh_role_template() #2026

Closed zpytela closed 7 months ago

zpytela commented 8 months ago

Update ssh_role_template() to allow user ssh agent type (e.g. staff_ssh_agent_t) IPC with user type (e.g. staff_t) over a unix stream socket. The other way of communication was already allowed.

The commit addresses the following AVC denial: Feb 05 11:36:24 fedora audit[5067]: AVC avc: denied { read write } for pid=5067 comm="ssh-agent" path="socket:[38159]" dev="sockfs" ino=38159 scontext=staff_u:staff_r:staff_ssh_agent_t:s0-s0:c0.c1023 tcontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tclass=unix_stream_socket permissive=0