Bug 1404481

Summary: SELinux is preventing rpcbind from 'setattr' accesses on the directory rpcbind.
Product: [Fedora] Fedora Reporter: Joel C <possumjc>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED NOTABUG 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:a76664c0d6b9446bc286ddc1c5222fa7ea59edce9c9d9ca0f1d86f4a53a65ff7;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-14 17:17:34 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 Joel C 2016-12-13 23:30:01 UTC
Description of problem:
SELinux is preventing rpcbind from 'setattr' accesses on the directory rpcbind.

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

If you believe that rpcbind should be allowed setattr access on the rpcbind directory 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 'rpcbind' --raw | audit2allow -M my-rpcbind
# semodule -X 300 -i my-rpcbind.pp

Additional Information:
Source Context                system_u:system_r:rpcbind_t:s0
Target Context                system_u:object_r:var_run_t:s0
Target Objects                rpcbind [ dir ]
Source                        rpcbind
Source Path                   rpcbind
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.3.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.8.10-300.fc25.x86_64 #1 SMP Mon
                              Nov 21 18:59:16 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-12-13 18:24:41 EST
Last Seen                     2016-12-13 18:24:41 EST
Local ID                      791991b9-d2da-4627-93bb-b0da56834685

Raw Audit Messages
type=AVC msg=audit(1481671481.278:1214): avc:  denied  { setattr } for  pid=21047 comm="rpcbind" name="rpcbind" dev="tmpfs" ino=617904 scontext=system_u:system_r:rpcbind_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=dir permissive=1


Hash: rpcbind,rpcbind_t,var_run_t,dir,setattr

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

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

Comment 1 Lukas Vrabec 2016-12-14 17:17:34 UTC
Hi, 
Please run:
# restorecon -Rv / 

To fix your issue. 

THanks, 
Lukas.