Bug 182748

Summary: SELinux prevents dbus from starting
Product: [Fedora] Fedora Reporter: David Nielsen <gnomeuser>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: johnp
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-27 16:20:20 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:
Attachments:
Description Flags
grep dbus /var/log/audit/audit.log
none
full audit.log none

Description David Nielsen 2006-02-24 14:27:37 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060212 Epiphany/1.9

Description of problem:
DBUS fails to come up during boot and networkmanager tells me the following:

Feb 24 15:17:07 price NetworkManager: <WARNING>  nm_dbus_get_networks_cb (): nm-dbus-nmi.c:527 (nm_dbus_get_networks_cb): error received: org.freedesktop.DBus.Error.AccessDenied - An SELinux policy prevents this sender from sending this message to this recipient (rejected message had interface "org.freedesktop.NetworkManagerInfo" member "getNetworks" error name "(unset)" destination "org.freedesktop.NetworkManagerInfo").

Version-Release number of selected component (if applicable):
selinux-policy-2.2.20-1

How reproducible:
Always

Steps to Reproduce:
1. Enable dbus and SELinux

  

Actual Results:  2. obtain the cryptic message above 

Expected Results:  2. Running DBUS.

Additional info:

Running Development as of 24-02-06 on Athlon-XP 1600+

Comment 1 David Nielsen 2006-02-24 14:28:53 UTC
*** Bug 182747 has been marked as a duplicate of this bug. ***

Comment 2 Daniel Walsh 2006-02-24 14:40:19 UTC
What avc messages are you seeing?

Comment 3 David Nielsen 2006-02-24 14:48:52 UTC
I'm not seeing any avc messages for some reason - all I get is the message
above. I tested with and without SELinux and without dbus starts. The filesystem
is relabeled.

Comment 4 Daniel Walsh 2006-02-24 15:43:05 UTC
semodule -b /usr/share/selinux/targeted/enableaudit.pp

Will turn on all auditing messages.
semodule -b /usr/share/selinux/targeted/base.pp

Turns them back off.

What version of dbus are you running?

I have not seen this here.  But maybe I am not running the same version.

John, 
Have you seen this?

Comment 5 David Nielsen 2006-02-24 16:06:27 UTC
dbus-0.60-7.2

Attached is everything in the audit.log that pretains to dbus.

Comment 6 David Nielsen 2006-02-24 16:07:17 UTC
Created attachment 125186 [details]
grep dbus /var/log/audit/audit.log

Comment 7 John (J5) Palmieri 2006-02-24 16:22:05 UTC
Works for me.  I have seen issues with NetworkManager but D-Bus starts up fine.
 David can you confirm that D-Bus does not run?  do a 'ps -aux | grep dbus'. 
Also a more complete audit log would be useful.

Comment 8 David Nielsen 2006-02-24 16:37:28 UTC
Okay now it's just taunting me, dbus is running, the problem must thus be
elsewhere. Why does the boot sequence then tell me that dbus fails I wonder.

dbus      1778  0.0  0.1  13396  1244 ?        Ssl  17:18   0:00 dbus-daemon
--system
david     2044  0.0  0.0   4052   676 ?        Ss   17:18   0:00
/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
david     2047  0.0  0.0   2852   516 ?        S    17:18   0:00
/usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
david     2048  0.0  0.1  13260  1380 ?        Ssl  17:18   0:00 dbus-daemon
--fork --print-pid 8 --print-address 6 --session

Comment 9 David Nielsen 2006-02-24 16:44:18 UTC
Created attachment 125188 [details]
full audit.log

Comment 10 David Nielsen 2006-02-27 15:57:24 UTC
after todays update this magically went away