Bug 1372106

Summary: SELinux is preventing nfs-server-gene from read access on the file export_features
Product: [Fedora] Fedora Reporter: Anthony Messina <amessina>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED WORKSFORME QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-14 18:05:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Anthony Messina 2016-08-31 23:45:38 UTC
While the alert says "nfs-server-gene," I believe this is really related to the nfs-utils changes for /usr/lib/systemd/system-generators/nfs-server-generator

~]# rpm -q selinux-policy-targeted nfs-utils
selinux-policy-targeted-3.13.1-191.13.fc24.noarch
nfs-utils-1.3.4-1.rc2.fc24.x86_64

~]# ls -lZ /usr/lib/systemd/system-generators/nfs-server-generator
-rwxr-xr-x. 1 root root system_u:object_r:init_exec_t:s0 45864 Aug 25 07:12 /usr/lib/systemd/system-generators/nfs-server-generator


~]# ls -lZ /proc/fs/nfsd/export_features 
-r--r--r--. 1 root root system_u:object_r:nfsd_fs_t:s0 0 Aug 29 18:33 /proc/fs/nfsd/export_features

type=AVC msg=audit(1472677507.798:556): avc:  denied  { read } for  pid=9027 comm="nfs-server-gene" name="export_features" dev="nfsd" ino=3 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:nfsd_fs_t:s0 tclass=file permissive=0

Comment 1 Anthony Messina 2017-01-14 18:05:07 UTC
This seems to have been fixed with one of the SELinux F25 updates as I don't see this error any longer.