Bug 1034416 - SELinux is preventing /usr/sbin/rpcbind from 'read' accesses on the file rpcbind.lock.
Summary: SELinux is preventing /usr/sbin/rpcbind from 'read' accesses on the file rpcb...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2d6a32de01194d90e9b625c56ea...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 19:29 UTC by INegueruela
Modified: 2013-11-26 13:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-26 13:19:30 UTC
Type: ---


Attachments (Terms of Use)

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.


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