Bug 1250645

Summary: selinux prevented Kerberos authentication to SSH
Product: [Fedora] Fedora Reporter: David Woodhouse <dwmw2>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED EOL QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 17:22:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Woodhouse 2015-08-05 16:15:02 UTC
27769 lstat("/var/tmp/ssh_0", {st_mode=S_IFREG|0600, st_size=1308, ...}) = 0
27769 open("/var/tmp/ssh_0", O_RDWR)    = -1 EACCES (Permission denied)
27769 unlink("/var/tmp/ssh_0")          = -1 EACCES (Permission denied)

type=AVC msg=audit(1438790777.382:18470): avc:  denied  { write } for  pid=26352 comm="sshd" name="ssh_0" dev="sda3" ino=404 scontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=0
type=AVC msg=audit(1438790777.382:18471): avc:  denied  { unlink } for  pid=26352 comm="sshd" name="ssh_0" dev="sda3" ino=404 scontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=file permissive=0

# ls -lZ /var/tmp/ssh_0
-rw-------. 1 root root system_u:object_r:tmp_t:s0 1308 Aug  5 09:05 /var/tmp/ssh_0
# restorecon /var/tmp/ssh_0
restorecon:  Warning no default label for /var/tmp/ssh_0

Removing it worked, and it got recreated as

-rw-------. 1 root root system_u:object_r:user_tmp_t:s0 223 Aug  5 09:11 /var/tmp/ssh_0

Comment 1 Fedora End Of Life 2016-07-19 17:22:17 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.