Bug 1378506

Summary: SELinux is preventing nfs-server-gene from read access on the file export_features
Product: [Fedora] Fedora Reporter: dan
Component: selinux-policyAssignee: Steve Dickson <steved>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: bcodding, bfields, dan, dominick.grift, dwalsh, jlayton, lvrabec, mgrepl, plautrba, pmoore, smayhew, steved
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: 2016-11-07 21:30:17 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 dan 2016-09-22 15:14:59 UTC
Description of problem:

Selinux error as follows:

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that nfs-server-gene should be allowed read access on the export_features file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'nfs-server-gene' --raw | audit2allow -M my-nfsservergene
# semodule -X 300 -i my-nfsservergene.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:nfsd_fs_t:s0
Target Objects                export_features [ file ]
Source                        nfs-server-gene
Source Path                   nfs-server-gene
Port                          <Unknown>
Host                          xxxx.private
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-191.14.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     ears.private
Platform                      Linux xxxx.private 4.6.7-300.fc24.x86_64 #1 SMP
                              Wed Aug 17 18:48:43 UTC 2016 x86_64 x86_64
Alert Count                   4
First Seen                    2016-09-03 10:08:17 EDT
Last Seen                     2016-09-07 13:00:04 EDT
Local ID                      04c6d43f-19b2-4cb9-8488-dc4a2d3c8209

Raw Audit Messages
type=AVC msg=audit(1473267604.570:19510): avc:  denied  { read } for  pid=30357 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


Hash: nfs-server-gene,init_t,nfsd_fs_t,file,read

Comment 1 J. Bruce Fields 2016-09-27 20:54:00 UTC
Yes, it would make sense for the new nfs-server-generator to be accessing /proc/fs/nsfd/export_features.  I'm not sure whose job it is to fix the policy....

Comment 2 dan 2016-10-24 15:45:29 UTC
Moving to selinux-policy for comment.