Bug 729963 - SELinux is preventing /sbin/rpcbind from 'unlink' accesses on the sock_file rpcbind.sock.
Summary: SELinux is preventing /sbin/rpcbind from 'unlink' accesses on the sock_file r...
Alias: None
Product: Fedora
Classification: Fedora
Component: rpcbind
Version: 16
Hardware: i686
OS: Unspecified
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:b3d96516b003746aea2e6c11c56...
: 731283 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2011-08-11 12:08 UTC by Milan Kerslager
Modified: 2011-08-23 11:20 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-08-22 22:29:37 UTC

Attachments (Terms of Use)

Description Milan Kerslager 2011-08-11 12:08:53 UTC
abrt version: 2.0.5
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.0.1-3.fc16.i686.PAE
reason:         SELinux is preventing /sbin/rpcbind from 'unlink' accesses on the sock_file rpcbind.sock.
time:           Thu Aug 11 14:08:41 2011

:SELinux is preventing /sbin/rpcbind from 'unlink' accesses on the sock_file rpcbind.sock.
:*****  Plugin catchall (100. confidence) suggests  ***************************
:If you believe that rpcbind should be allowed unlink access on the rpcbind.sock sock_file by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
: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.sock [ sock_file ]
:Source                        rpcbind
:Source Path                   /sbin/rpcbind
:Port                          <Neznámé>
:Host                          (removed)
:Source RPM Packages           rpcbind-0.2.0-13.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-15.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.0.1-3.fc16.i686.PAE #1 SMP Mon Aug 8
:                              18:13:53 UTC 2011 i686 i686
:Alert Count                   3
:First Seen                    Út 9. srpen 2011, 10:31:56 CEST
:Last Seen                     Út 9. srpen 2011, 12:38:17 CEST
:Local ID                      0da11295-9f5c-4417-becc-0edd43f0ef01
:Raw Audit Messages
:type=AVC msg=audit(1312886297.16:27): avc:  denied  { unlink } for  pid=884 comm="rpcbind" name="rpcbind.sock" dev=tmpfs ino=12824 scontext=system_u:system_r:rpcbind_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file
:type=SYSCALL msg=audit(1312886297.16:27): arch=i386 syscall=unlink success=no exit=EACCES a0=895958 a1=0 a2=898340 a3=bfd5456e items=0 ppid=1 pid=884 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=/sbin/rpcbind subj=system_u:system_r:rpcbind_t:s0 key=(null)
:Hash: rpcbind,rpcbind_t,var_run_t,sock_file,unlink
:#============= rpcbind_t ==============
:allow rpcbind_t var_run_t:sock_file unlink;
:audit2allow -R
:#============= rpcbind_t ==============
:allow rpcbind_t var_run_t:sock_file unlink;

Comment 1 Daniel Walsh 2011-08-11 20:07:51 UTC
I believe this sock_file is being created by systemd and being mirlabeled

Comment 2 Daniel Walsh 2011-08-17 12:40:34 UTC
*** Bug 731283 has been marked as a duplicate of this bug. ***

Comment 3 Lennart Poettering 2011-08-21 12:18:19 UTC
rpcbind does not use systemd style socket actviation afaik, so systemd is not involved.

Comment 4 Miroslav Grepl 2011-08-22 13:08:31 UTC

restorecon -R -v /var/run/rpcbind*

fix the issue?

Comment 5 Daniel Walsh 2011-08-22 14:21:00 UTC
Lennart are you sure?

 rpm -q rpcbind -l | grep socket

Comment 6 Milan Kerslager 2011-08-22 22:29:37 UTC
As of current updates-testing, this is no longer issue here and the bug could be closed.

Comment 7 Lennart Poettering 2011-08-23 11:20:17 UTC
(In reply to comment #5)
> Lennart are you sure?
>  rpm -q rpcbind -l | grep socket
> /lib/systemd/system/rpcbind.socket

Oh, interesting. I wasn't aware of that. Good to know. Thanks!

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