Bug 1034416

Summary: SELinux is preventing /usr/sbin/rpcbind from 'read' accesses on the file rpcbind.lock.
Product: [Fedora] Fedora Reporter: INegueruela <inegueruela>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:2d6a32de01194d90e9b625c56ea9dea66385a474553a152379a9e8a2bf94dbff
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-26 13:19:30 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 INegueruela 2013-11-25 19:29:07 UTC
Description of problem:
On startup.
SELinux is preventing /usr/sbin/rpcbind from 'read' accesses on the file rpcbind.lock.

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

If you believe that rpcbind should be allowed read access on the rpcbind.lock 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:
# grep rpcbind /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.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.lock [ file ]
Source                        rpcbind
Source Path                   /usr/sbin/rpcbind
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           rpcbind-0.2.1-0.fc19.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.13.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.5-301.fc19.i686 #1 SMP Tue Jun
                              11 20:01:50 UTC 2013 i686 i686
Alert Count                   2
First Seen                    2013-11-25 12:19:51 CET
Last Seen                     2013-11-25 20:29:52 CET
Local ID                      e49dcc62-14fa-4a2c-96b2-c7525e557390

Raw Audit Messages
type=AVC msg=audit(1385407792.543:49): avc:  denied  { read } for  pid=891 comm="rpcbind" name="rpcbind.lock" dev="tmpfs" ino=9975 scontext=system_u:system_r:rpcbind_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1385407792.543:49): arch=i386 syscall=open success=no exit=EACCES a0=b774c34d a1=40 a2=124 a3=bf974a14 items=0 ppid=1 pid=891 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=rpcbind exe=/usr/sbin/rpcbind subj=system_u:system_r:rpcbind_t:s0 key=(null)

Hash: rpcbind,rpcbind_t,var_run_t,file,read

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.9.5-301.fc19.i686
type:           libreport

Potential duplicate: bug 961835

Comment 1 Lukas Vrabec 2013-11-26 13:19:30 UTC
Hi, 

use: "# sudo restorecon -v -R /var/run/" this should fix your problem.