Bug 1403430

Summary: SELinux is preventing rpc.mountd from 'write' accesses on the sock_file rpcbind.sock.
Product: [Fedora] Fedora Reporter: bugzilla
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8102176f171e2f61ad5c384beaa304ee122e34f4db4c6973e9ad59c2aa2a359d;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-10 12:46:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description bugzilla 2016-12-10 09:56:42 UTC
Description of problem:
SELinux is preventing rpc.mountd from 'write' accesses on the sock_file rpcbind.sock.

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

If vous pensez que rpc.mountd devrait être autorisé à accéder write sur rpcbind.sock sock_file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
allow this access for now by executing:
# ausearch -c 'rpc.mountd' --raw | audit2allow -M my-rpcmountd
# semodule -X 300 -i my-rpcmountd.pp

Additional Information:
Source Context                system_u:system_r:nfsd_t:s0
Target Context                system_u:object_r:var_run_t:s0
Target Objects                rpcbind.sock [ sock_file ]
Source                        rpc.mountd
Source Path                   rpc.mountd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.1.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.12-300.fc25.x86_64 #1 SMP Fri
                              Dec 2 17:52:11 UTC 2016 x86_64 x86_64
Alert Count                   15
First Seen                    2016-12-10 10:53:09 CET
Last Seen                     2016-12-10 10:53:09 CET
Local ID                      c3760890-014b-49f3-883b-4b5c18014854

Raw Audit Messages
type=AVC msg=audit(1481363589.816:289): avc:  denied  { write } for  pid=2544 comm="rpc.mountd" name="rpcbind.sock" dev="tmpfs" ino=14492 scontext=system_u:system_r:nfsd_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file permissive=0


Hash: rpc.mountd,nfsd_t,var_run_t,sock_file,write

Version-Release number of selected component:
selinux-policy-3.13.1-225.1.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.12-300.fc25.x86_64
type:           libreport

Potential duplicate: bug 875310

Comment 1 Daniel Walsh 2016-12-10 12:46:57 UTC

*** This bug has been marked as a duplicate of bug 1403433 ***