Bug 961835

Summary: SELinux is preventing /usr/sbin/rpcbind from 'read' accesses on the file rpcbind.lock.
Product: [Fedora] Fedora Reporter: tim.babin
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:2d6a32de01194d90e9b625c56ea9dea66385a474553a152379a9e8a2bf94dbff
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-13 08:03:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description tim.babin 2013-05-10 14:06:28 UTC
Description of problem:
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.0-19.fc17.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-169.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.6.10-4.fc18.x86_64 #1 SMP Tue
                              Dec 11 18:01:27 UTC 2012 x86_64 x86_64
Alert Count                   2
First Seen                    2013-05-08 08:49:58 CDT
Last Seen                     2013-05-08 16:20:20 CDT
Local ID                      2f905bb1-a295-4d80-a647-a01021f377ce

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


type=AVC msg=audit(1368048020.339:34): avc:  denied  { open } for  pid=1179 comm="rpcbind" path="/run/rpcbind.lock" dev="tmpfs" ino=1355 scontext=system_u:system_r:rpcbind_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1368048020.339:34): arch=x86_64 syscall=open success=yes exit=EINTR a0=7f2ca6865efa a1=40 a2=124 a3=7fff9ba45080 items=0 ppid=1 pid=1179 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 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

audit2allow

#============= rpcbind_t ==============
allow rpcbind_t var_run_t:file { read open };

audit2allow -R

#============= rpcbind_t ==============
allow rpcbind_t var_run_t:file { read open };


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.11-100.fc17.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-05-10 19:15:10 UTC
restorecon -R -v /run

Should fix this problem.  Did you run rpcbind by hand?