Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > af1bd5b8834d29f2abe159c559eb6bea > files > 18

NetworkManager-0.7.0-10.el5_5.1.src.rpm

https://bugzilla.redhat.com/show_bug.cgi?id=463930

HAL 0.5.8 initializes the D-Bus connection _after_ it has dropped privileges,
which means that D-Bus sees the HAL bus connection as UID 68 (haldaemon).  Thus
the NM policy prevents HAL from sending signals to NetworkManager.  Later
versions of HAL initialize the D-Bus connection before dropping privileges
and thus do not have this problem.

diff -up NetworkManager-0.7.0/src/NetworkManager.conf.hal-signals NetworkManager-0.7.0/src/NetworkManager.conf
--- NetworkManager-0.7.0/src/NetworkManager.conf.hal-signals	2008-10-09 14:52:30.000000000 -0400
+++ NetworkManager-0.7.0/src/NetworkManager.conf	2008-10-09 14:53:28.000000000 -0400
@@ -11,6 +11,9 @@
                 <allow send_destination="org.freedesktop.NetworkManager.PPP"/>
                 <allow send_interface="org.freedesktop.NetworkManager.PPP"/>
         </policy>
+        <policy user="haldaemon">
+                <allow send_destination="org.freedesktop.NetworkManager"/>
+        </policy>
         <policy at_console="true">
                 <allow send_destination="org.freedesktop.NetworkManager"/>
                 <allow send_interface="org.freedesktop.NetworkManager"/>