Bug 1404481 - SELinux is preventing rpcbind from 'setattr' accesses on the directory rpcbind.
Summary: SELinux is preventing rpcbind from 'setattr' accesses on the directory rpcbind.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a76664c0d6b9446bc286ddc1c52...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-13 23:30 UTC by Joel C
Modified: 2016-12-14 17:17 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-14 17:17:34 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.