Bug 429560
| Summary: | selinux reveals ssh is leaking a file descriptor | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Daniel Walsh <dwalsh> | ||||||
| Component: | openssh | Assignee: | Tomas Mraz <tmraz> | ||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | low | ||||||||
| Version: | rawhide | ||||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2008-04-07 20:07:41 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: | |||||||||
| Attachments: |
|
||||||||
Created attachment 292388 [details]
I think this patch might fix the problem.
Created attachment 292397 [details]
This socket needs cloexec instead.
|
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.