Red Hat Bugzilla – Bug 831012
SELinux Policy prevents automount from mounting.
Last modified: 2012-10-17 04:56:56 EDT
Description of problem:
SELinux policy appears to prevent automount from mounting.
Version-Release number of selected component (if applicable):
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.
The SELinux warning says:
The source process: /usr/bin/automount
Attempted this access: read
On this file: /etc/hosts
I expect the above 'ls' command to produce a directory listing for valid hosts that have exported filesystems.
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.
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.