Description of problem: When running ssh from a staff user, there is a transition to xauth, so xauth runs in a different context and SELinux gerates this AVC. time->Mon Jan 21 11:47:57 2008 type=SYSCALL msg=audit(1200934077.724:113): arch=c000003e syscall=59 success=yes exit=0 a0=8cbb80 a1=8ca410 a2=8ca070 a3=3c68b599f0 items=0 ppid=5362 pid=5363 auid=3267 uid=3267 gid=3267 euid=3267 suid=3267 fsuid=3267 egid=3267 sgid=3267 fsgid=3267 tty=pts5 comm="xauth" exe="/usr/bin/xauth" subj=staff_u:staff_r:xauth_t:s0 key=(null) type=AVC msg=audit(1200934077.724:113): avc: denied { read write } for pid=5363 comm="xauth" path="socket:[77954]" dev=sockfs ino=77954 scontext=staff_u:staff_r:xauth_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=tcp_socket THis indicates a leaked file descritor.
Created attachment 292388 [details] I think this patch might fix the problem.
Created attachment 292397 [details] This socket needs cloexec instead.