Bug 831012 - SELinux Policy prevents automount from mounting.
Summary: SELinux Policy prevents automount from mounting.
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-12 00:31 UTC by Kevin
Modified: 2012-10-17 08:56 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-17 08:56:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kevin 2012-06-12 00:31:35 UTC
Description of problem:

SELinux policy appears to prevent automount from mounting.

Version-Release number of selected component (if applicable):

selinux-policy-3.10.0-128.fc17.noarch

How reproducible:

100%.
    
Steps to Reproduce:
1.  Edit /etc/hosts.allow, /etc/hosts.deny, /etc/hosts, /etc/exports to allow NFS and autofs to mount.
2.  Try listing 'ls /net/some_host_name/'
3.  Observe an SELinux warning and open it.

Actual results:

The SELinux warning says:

The source process: /usr/bin/automount
Attempted this access: read
On this file: /etc/hosts

Expected results:

I expect the above 'ls' command to produce a directory listing for valid hosts that have exported filesystems.

Additional info:

Disabling SELinux in /etc/selinux/config allows automount to work.  I checked for updates just now, and my system is up to date.  It looks like Red Hat Bugzilla Bug ID 197089 from 2006 is quite a bit like this one.

Thanks....

Comment 1 Miroslav Grepl 2012-06-12 11:48:45 UTC
You can switch to permissive mode using

# setenforce 0

then re-test it and execute

# auseearch -m avc -ts recent

which will show us AVC msgs which we need to see.


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