Red Hat Bugzilla – Bug 853852
SELinux Boolean for NFS failed to prevent nfs client access
Last modified: 2014-09-30 19:33:49 EDT
Description of problem:
Selinux failed to block access to nfs request
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. setsebool -P nfs_export_all_rw off
2. mkdir /myshare
3. chmod 777 /myshare
4. Add "/myshare 192.168.2.0/24(rw,sync)" to /etc/exports
5. exportfs -rv
On client side:
6. mkdir /myshare
7. mount.nfs nfsserver:/myshare /myshare
Client can mount the nfs share and read/write files.
At this point, client is expected to NOT be able to mount and read/write files because of SELINUX booleans set in step 1.
Yes this boolean will not block nfs access since nfs server runs as a kernel process.
The boolean(s) should probably just be removed.
# rpm -q selinux-policy
We have this boolean no longer in the latest policy.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.