[Pkg-utopia-maintainers] Bug#665973: Bug#665973: network-manager: Could not initialize NMClient /org/freedesktop/NetworkManager when logged via XDM

Michael Biebl biebl at debian.org
Tue Mar 27 13:43:44 UTC 2012


Am 27.03.2012 15:32, schrieb Luca Capello:
> Package: network-manager
> Version: 0.9.2.0-2
> Severity: normal
> Usertags: pca.it-communication
> 
> Hi there!
> 
> According to <file:///usr/share/doc/network-manager/README.Debian.gz>:
> 
> --8<---------------cut here---------------start------------->8---
> Security
> ~~~~~~~~
> 
> To allow users to connect to the NetworkManager daemon they have to be in the
> group "netdev". If you want to add a user to group "netdev" use the command
> "adduser username netdev" or one of the graphical user management frontends.
> After that you have to reload D-Bus with the command "service dbus reload".
> 
> Alternatively you can install the "consolekit" package which will grant access
> for all locally logged in users.
> --8<---------------cut here---------------end--------------->8---
> 
> There is however something strange going on: my local user 'luca' is not
> in the netdev group, but "consolekit" is installed, so everything should
> work just fine.  And this is the case with 0.9.4.0-1 when logged in a
> *console* (sorry, I forgot to test this with 0.9.2.0-2).
> 
> However, if the user is not in the "netdev" group, when logged in via
> *XDM* I get the following errors with 0.9.2.0-2 (the reason why I
> reported it to this old version):
> =====
> $ ck-list-sessions
> Session2:
>         unix-user = '0'
>         realname = 'root'
>         seat = 'Seat1'
>         session-type = ''
>         active = FALSE
>         x11-display = ''
>         x11-display-device = ''
>         display-device = '/dev/pts/5'
>         remote-host-name = ''
>         is-local = TRUE
>         on-since = '2012-03-26T22:15:39.804473Z'
>         login-session-id = '4294967295'
> Session1:
>         unix-user = '1000'
>         realname = 'Luca Capello'
>         seat = 'Seat2'
>         session-type = ''
>         active = FALSE
>         x11-display = ':0'
>         x11-display-device = '/dev/tty7'
>         display-device = ''
>         remote-host-name = ''
>         is-local = FALSE
>         on-since = '2012-03-26T19:34:45.384234Z'
>         login-session-id = '4294967295'
> 
> $ nmcli nm
> 
> ** (process:27312): WARNING **: _nm_object_get_property: Error getting \
>  'WirelessHardwareEnabled' for /org/freedesktop/NetworkManager: (9) \
>  Rejected send message, 2 matched rules; type="method_call", \
>  sender=":1.29" (uid=1000 pid=27312 comm="nmcli nm ") \
>  interface="org.freedesktop.DBus.Properties" member="Get" \
>  error name="(unset)" requested_reply="0" \
>  destination="org.freedesktop.NetworkManager" \
>  (uid=0 pid=1316 comm="/usr/sbin/NetworkManager ")
> 
> 
> ** (process:27312): WARNING **: _nm_object_get_property: Error getting \
>  'WwanHardwareEnabled' for /org/freedesktop/NetworkManager: (9) \
>  Rejected send message, 2 matched rules; type="method_call", \
>  sender=":1.29" (uid=1000 pid=27312 comm="nmcli nm ") \
>  interface="org.freedesktop.DBus.Properties" member="Get" \
>  error name="(unset)" requested_reply="0" \
>  destination="org.freedesktop.NetworkManager" \
>  (uid=0 pid=1316 comm="/usr/sbin/NetworkManager ")
> 
> 
> ** (process:27312): WARNING **: _nm_object_get_property: Error getting \
>  'WimaxHardwareEnabled' for /org/freedesktop/NetworkManager: (9) \
>  Rejected send message, 2 matched rules; type="method_call", \
>  sender=":1.29" (uid=1000 pid=27312 comm="nmcli nm ") \
>  interface="org.freedesktop.DBus.Properties" member="Get" \
>  error name="(unset)" requested_reply="0" \
>  destination="org.freedesktop.NetworkManager" \
>  (uid=0 pid=1316 comm="/usr/sbin/NetworkManager ")
> 
> 
> ** (process:27312): WARNING **: _nm_object_get_property: Error getting \
>  'State' for /org/freedesktop/NetworkManager: (9) \
>  Rejected send message, 2 matched rules; type="method_call", \
>  sender=":1.29" (uid=1000 pid=27312 comm="nmcli nm ") \
>  interface="org.freedesktop.DBus.Properties" member="Get" \
>  error name="(unset)" requested_reply="0" \
>  destination="org.freedesktop.NetworkManager" \
> (uid=0 pid=1316 comm="/usr/sbin/NetworkManager ")
> 
> Error: nmcli (0.9.2.0) and NetworkManager (unknown) versions don't match. Force execution using --nocheck, but the results are unpredictable.
> $ dpkg-query -W network-manager\*
> network-manager 0.9.2.0-2
> network-manager-gnome
> network-manager-kde
> network-manager-openconnect
> network-manager-openvpn 0.9.2.0-1
> network-manager-pptp
> network-manager-vpnc    0.9.2.0-1
> $ nmcli -n nm
> 
> [same errors as above plus the two ones below]
> 
> ** (process:6350): WARNING **: _nm_object_get_property: Error getting \
>  'State' for /org/freedesktop/NetworkManager: (9) \
>  Rejected send message, 2 matched rules; type="method_call", \
>  sender=":1.62" (uid=1000 pid=6350 comm="nmcli -n nm ") \
>  interface="org.freedesktop.DBus.Properties" member="Get" \
>  error name="(unset)" requested_reply="0" \
>  destination="org.freedesktop.NetworkManager" \
>  (uid=0 pid=4589 comm="/usr/sbin/NetworkManager ")
> 
> 
> ** (process:6350): WARNING **: _nm_object_get_property: Error getting \
>  'NetworkingEnabled' for /org/freedesktop/NetworkManager: (9) \
>  Rejected send message, 2 matched rules; type="method_call", \
>  sender=":1.62" (uid=1000 pid=6350 comm="nmcli -n nm ") \
>  interface="org.freedesktop.DBus.Properties" member="Get" \
>  error name="(unset)" requested_reply="0" \
>  destination="org.freedesktop.NetworkManager" \
>  (uid=0 pid=4589 comm="/usr/sbin/NetworkManager ")
> 
> RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN
> running         unknown         disabled        disabled   disabled        disabled
> $ nmcli -n con list
> 
> ** (process:6456): WARNING **: get_all_cb: couldn't retrieve \
>  system settings properties: (9) \
>  Rejected send message, 2 matched rules; type="method_call", \
>  sender=":1.63" (uid=1000 pid=6456 comm="nmcli -n con list ") \
>  interface="org.freedesktop.DBus.Properties" member="GetAll" \
>  error name="(unset)" requested_reply="0" \
>  destination="org.freedesktop.NetworkManager" \
>  (uid=0 pid=4589 comm="/usr/sbin/NetworkManager ").
> NAME                      UUID                                   TYPE              TIMESTAMP-REAL
> $
> =====
> 
> With 0.9.4.0-1 and still not being the "netdev" group, the situation
> changes a bit, but it is not consistent yet with the console behavior
> (which, again, works with no problem):
> =====
> $ nmcli nm
> 
> ** (process:2930): WARNING **: Could not initialize \
>  NMClient /org/freedesktop/NetworkManager: \
>  Rejected send message, 2 matched rules; type="method_call", \
>  sender=":1.17" (uid=1000 pid=2930 comm="nmcli nm ") \
>  interface="org.freedesktop.DBus.Properties" member="GetAll" \
>  error name="(unset)" requested_reply="0" \
>  destination="org.freedesktop.NetworkManager" 
> (uid=0 pid=1283 comm="/usr/sbin/NetworkManager ")
> Error: nmcli (0.9.4.0) and NetworkManager (unknown) versions don't match. Force execution using --nocheck, but the results are unpredictable.
> $
> =====
> 
> If the local user is added to the "netdev" group, then nmcli is fine.
> Thus, I would say the problem is related to ConsoleKit,given that on a
> console session both "active" and "is-local" are TRUE:
> =====
> $ ck-list-sessions
> Session1:
>         unix-user = '1000'
>         realname = 'Luca Capello'
>         seat = 'Seat1'
>         session-type = ''
>         active = TRUE
>         x11-display = ''
>         x11-display-device = ''
>         display-device = '/dev/tty1'
>         remote-host-name = ''
>         is-local = TRUE
>         on-since = '2012-03-27T12:44:28.743202Z'
>         login-session-id = '4294967295'

That's a issue in XDM. I doesn't natively support ConsoleKit and the
Xsession.d script no longer works unless you enable the pam_loginuid module.
There is a bug against consolekit which has all the gory details.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 898 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20120327/c1dd0450/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list