Bug 637109
Summary: | which context is correct for /root/.ssh directory ? | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Milos Malik <mmalik> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 6.0 | CC: | dwalsh, eparis, mgrepl, sdsmall, syeghiay |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.7.19-69.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-05-19 11:56:34 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
Milos Malik
2010-09-24 10:18:41 UTC
# semanage fcontext -l | grep ssh_home_t # semanage fcontext -l | grep home_ssh_t /opt/NX/home/nx/\.ssh(/.*)? all files system_u:object_r:nx_server_home_ssh_t:s0 /root/\.shosts all files system_u:object_r:home_ssh_t:s0 /root/\.ssh(/.*)? all files system_u:object_r:home_ssh_t:s0 /usr/NX/home/nx/\.ssh(/.*)? all files system_u:object_r:nx_server_home_ssh_t:s0 /var/lib/nxserver/home/.ssh(/.*)? all files system_u:object_r:nx_server_home_ssh_t:s0 # matchpathcon /root/.ssh /root/.ssh system_u:object_r:ssh_home_t:s0 # home_ssh_t and ssh_home_t are the same thing. They are aliases to each other. ssh_home_t is the correct label, going forward. type ssh_home_t; typealias ssh_home_t alias { home_ssh_t user_ssh_home_t user_home_ssh_t staff_home_ssh_t sysadm_home_ssh_t }; Seems like libsemanage is doing something strange with the aliasing. This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. If you would like it considered as an exception in the current release, please ask your support representative. I think this ended up being a problem in the policy. Yes, it can be fixed in the policy. Fixed in selinux-policy-3.7.19-69.el6 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0526.html |