Re: Networkmanager/dbus/wpa_supplicant



On Thu, 2008-01-10 at 16:12 +0000, Robert Piasek wrote:
> Hi,
> 
> Today I've updated NM to recent SVN build. When I run NetworkManager I
> can see in logs:
> 
> Jan 10 15:50:36 [NetworkManager] <info>  Trying to start the
> supplicant..._
> Jan 10 15:50:37 [NetworkManager] <info>  Trying to start the
> supplicant..._
> 
> and it doesn't start it. When I manually run wpa_supplicant -u I can
> see:
> 
> Jan 10 15:50:51 [NetworkManager] <info>  (eth0) supplicant interface
> is now in state 1 (from 0)._
> Jan 10 15:50:51 [NetworkManager] <info>  (eth0) supplicant interface
> is now in state 2 (from 1)._
> 
> so everything seems to be fine.
> 
> This happens for wired ethernet card (haven't tried on laptop yet to
> check wireless). 
> I'm using dbus-1.1.2 so it should start automatically right? Can it be
> related with dbus policy settings?

You want to make sure you have the correct dbus system bus activation
file
at /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service:

[D-BUS Service]
Name=fi.epitest.hostap.WPASupplicant
Exec=/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f
User=root


Dan

> my current setting for NM is:
> 
> cat /etc/dbus-1/system.d/NetworkManager.conf 
> 
> <!DOCTYPE busconfig PUBLIC
> "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
> "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd";>
> <busconfig>
>         <policy user="root">
>                 <allow own="org.freedesktop.NetworkManager"/>
>                 <allow
> send_destination="org.freedesktop.NetworkManager"/>
>                 <allow
> send_interface="org.freedesktop.NetworkManager"/>
> 
> <allow own="org.freedesktop.NetworkManager.PPP"/>
>                 <allow
> send_destination="org.freedesktop.NetworkManager.PPP"/>
>                 <allow
> send_interface="org.freedesktop.NetworkManager.PPP"/>
>         </policy>
>         <policy group="plugdev">
>                  <allow
> send_destination="org.freedesktop.NetworkManager"/>
>                  <allow
> send_interface="org.freedesktop.NetworkManager"/>
>          </policy>
>          <policy context="default">
>                 <allow own="org.freedesktop.NetworkManager"/>
>                 <allow
> send_destination="org.freedesktop.NetworkManager"/>
>                 <allow
> send_interface="org.freedesktop.NetworkManager"/>
> 
>                 <deny own="org.freedesktop.NetworkManager.PPP"/>
>                 <deny
> send_destination="org.freedesktop.NetworkManager.PPP"/>
>                 <deny
> send_interface="org.freedesktop.NetworkManager.PPP"/>
>         </policy>
> 
>         <limit name="max_replies_per_connection">512</limit>
> </busconfig>
> 
> cat /etc/dbus-1/system.d/wpa_supplicant.conf 
> 
> <!DOCTYPE busconfig PUBLIC
> "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
> "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd";>
> <busconfig>
>         <policy user="root">
>                 <allow own="fi.epitest.hostap.WPASupplicant"/>
> 
>                 <allow
> send_destination="fi.epitest.hostap.WPASupplicant"/>
>                 <allow
> send_interface="fi.epitest.hostap.WPASupplicant"/>
>         </policy>
>         <policy at_console="true">
>                 <allow
> send_destination="fi.epitest.hostap.WPASupplicant"/>
>                 <allow
> send_interface="fi.epitest.hostap.WPASupplicant"/>
>         </policy>
>         <policy context="default">
>                 <deny own="fi.epitest.hostap.WPASupplicant"/>
>                 <deny
> send_destination="fi.epitest.hostap.WPASupplicant"/>
>                 <deny
> send_interface="fi.epitest.hostap.WPASupplicant"/>
>         </policy>
> </busconfig>
> 
> 
> 
> Thank you,
> 
> Robert 
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]