Bug 638393

Summary: ssh_home_t versus home_ssh_t confusion in ssh.fc
Product: [Fedora] Fedora Reporter: Valdis Kletnieks <valdis.kletnieks>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.9.5-10.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-05 13:07:44 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:

Description Valdis Kletnieks 2010-09-28 22:22:09 UTC
Description of problem:
seen in policy-F14.patch:

diff --git a/policy/modules/services/ssh.fc b/policy/modules/services/ssh.fc
index 078bcd7..dd706b0 100644
--- a/policy/modules/services/ssh.fc
+++ b/policy/modules/services/ssh.fc
....
+/root/\.ssh(/.*)?                      gen_context(system_u:object_r:home_ssh_t,s0)
+/root/\.shosts                         gen_context(system_u:object_r:home_ssh_t,s0)

Shouldn't that be ssh_home_t instead?

Version-Release number of selected component (if applicable):
selinux-policy-3.9.5-7.fc15.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2010-09-29 12:54:00 UTC
They are typealias of each other, IE the same thing.  The strange thing is the default seems to be ssh_home_t but semanage is writing them out as home_ssh_t.

Comment 2 Daniel Walsh 2010-09-29 12:58:17 UTC
Oops.  I just found the bug.


Fixed in selinux-policy-3.9.5-8

Comment 3 Fedora Update System 2010-10-04 19:35:34 UTC
selinux-policy-3.9.5-10.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.5-10.fc14

Comment 4 Valdis Kletnieks 2010-10-04 19:51:32 UTC
Looks fixed, thanks - the label on /root/.ssh/known_hosts is staying nailed down to ssh_home_t rather than continually transmogrifying back to home_ssh_t.

Comment 5 Daniel Walsh 2010-10-04 20:12:36 UTC
Update karma please.

Comment 6 Valdis Kletnieks 2010-10-04 20:21:53 UTC
I see no Bugzilla button for karma, sorry.. :)

Comment 7 Daniel Walsh 2010-10-04 20:27:37 UTC
Click on link 

https://admin.fedoraproject.org/updates/selinux-policy-3.9.5-10.fc14

And leave a comment.

Comment 8 Fedora Update System 2010-10-05 13:05:02 UTC
selinux-policy-3.9.5-10.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.