Bug 638393 - ssh_home_t versus home_ssh_t confusion in ssh.fc
Summary: ssh_home_t versus home_ssh_t confusion in ssh.fc
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-28 22:22 UTC by Valdis Kletnieks
Modified: 2010-10-05 13:07 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.5-10.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-05 13:07:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.