Bug 617763 - xm_t is not able to search dirs with autofs_t
xm_t is not able to search dirs with autofs_t
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: selinux-policy (Show other bugs)
5.5
All Linux
medium Severity medium
: rc
: ---
Assigned To: Miroslav Grepl
Milos Malik
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-23 17:13 EDT by Jeff Bastian
Modified: 2012-10-15 10:05 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Prior to this update, the "xm_t" domain was not allowed to search directories with the "autofs_t" security context. Consequent to this, virtual machines could not be stored on automatically mounted file systems. With this update, the SELinux rules have been adjusted to permit such search, so that the virtual machines can now be stored on an automatically mounted file system as expected.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-01-13 16:50:03 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jeff Bastian 2010-07-23 17:13:38 EDT
Description of problem:
xm_t is not able to search dirs with autofs_t.  This prevents virtual machines from being stored on an automounted filesystem.

Can you add the following to the policy?
  fs_search_auto_mountpoints(xm_t)

Version-Release number of selected component (if applicable):
selinux-policy-2.4.6-279.el5

How reproducible:


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


Expected results:


Additional info:
This custom module is a current workaround:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
module mysemanage 1.0.1;

require {
     type xm_t;
     type autofs_t;
     type file_t;
     class dir search;
}

#============= xm_t ==============
allow xm_t autofs_t:dir search;
allow xm_t file_t:dir search;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 3 Miroslav Grepl 2010-07-26 12:38:31 EDT
Added to selinux-policy-2.4.6-281.el5.noarch
Comment 8 Jaromir Hradilek 2011-01-05 11:18:22 EST
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Prior to this update, the "xm_t" domain was not allowed to search directories with the "autofs_t" security context. Consequent to this, virtual machines could not be stored on automatically mounted file systems. With this update, the SELinux rules have been adjusted to permit such search, so that the virtual machines can now be stored on an automatically mounted file system as expected.
Comment 10 errata-xmlrpc 2011-01-13 16:50:03 EST
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-0026.html

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