Bug 283101

Summary: setroubleshootd fails to start with selinux dbus socket write error
Product: [Fedora] Fedora Reporter: Paul Jenner <psj>
Component: setroubleshootAssignee: John Dennis <jdennis>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 7   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-15 17:16:08 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 Paul Jenner 2007-09-07 20:04:02 UTC
Description of problem:

Since most recent updates from updates-testing, setroubleshootd fails to start
with selinux dbus socket write errors.

[root@localhost ~]# service setroubleshoot start
Starting setroubleshootd:                                  [  OK  ]
[root@localhost ~]# service setroubleshoot status
setroubleshootd dead but pid file exists

[root@localhost ~]# grep setroubleshoot /var/log/messages | tail -1
Sep  7 20:59:57 localhost setroubleshoot: [rpc.ERROR] exception DBusException:
org.freedesktop.DBus.Error.AccessDenied: Failed to connect to socket
/var/run/dbus/system_bus_socket: Permission denied Traceback (most recent call
last):   File "/usr/lib/python2.5/site-packages/setroubleshoot/server.py", line
406, in RunFaultServer     setroubleshootd_dbus = SetroubleshootdDBus()   File
"/usr/lib/python2.5/site-packages/setroubleshoot/server.py", line 317, in
__init__     self.bus = dbus.SystemBus()   File
"/usr/lib/python2.5/site-packages/dbus/_dbus.py", line 201, in __new__    
private=private)   File "/usr/lib/python2.5/site-packages/dbus/_dbus.py", line
107, in __new__     bus = BusConnection.__new__(subclass, bus_type,
mainloop=mainloop)   File "/usr/lib/python2.5/site-packages/dbus/bus.py", line
121, in __new__     bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
DBusException: org.freedesktop.DBus.Error.AccessDenied: Failed to connect to
socket /var/run/dbus/system_bus_socket: Permission denied

sealert gives:

SELinux is preventing setroubleshootd (setroubleshootd_t) "write" to
system_bus_socket (system_dbusd_var_run_t).

Version-Release number of selected component (if applicable):

[root@localhost ~]# rpm -qf /etc/init.d/setroubleshoot 
setroubleshoot-server-1.10.1-1.fc7
[root@localhost ~]# rpm -qf /var/run/dbus
dbus-1.0.2-6.fc7
[root@localhost ~]# rpm -q selinux-policy-targeted
selinux-policy-targeted-2.6.4-40.fc7

How reproducible:

Always

Steps to Reproduce:
1. service setroubleshoot start
  
Actual results:

setroubleshoot fails to start with selinux dbus socket write error

Expected results:

setroubleshoot starts

Additional info:

Comment 1 John Dennis 2007-09-15 17:16:08 UTC
Thank you for reporting this. It's a known issue which can be solved by
upgrading your version of the selinux policy to 3.0.7-10 or higher.

*** This bug has been marked as a duplicate of 289371 ***