After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729550 - Invalid polkit policy shipped by NetworkManager
Invalid polkit policy shipped by NetworkManager
Status: RESOLVED DUPLICATE of bug 707983
Product: NetworkManager
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-05-05 06:08 UTC by Stef Walter
Modified: 2014-05-05 06:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stef Walter 2014-05-05 06:08:13 UTC
NetworkManager ships invalid polkit policy that prevents remote users (those logged in via ssh or Cockpit) from managing the daemon even though they have appropriate privileges (ie: are admin users).

The attached patch fixes the issue.

Reproduced on NetworkManager-0.9.9.0, but the attached patch also applies to master.
Comment 1 Stef Walter 2014-05-05 06:09:26 UTC
Broken behavior:

[stef@stef ~]$ ssh stef@localhost
[stef@stef ~]$ id
uid=1000(stef) gid=1000(stef) groups=1000(stef),10(wheel),18(dialout),979(vboxusers),984(wireshark),989(mock) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[stef@stef ~]$ pkttyagent &
[stef@stef ~]$ dbus-send --system --dest=org.freedesktop.NetworkManager --type=method_call --print-reply /org/freedesktop/NetworkManager/Settings org.freedesktop.NetworkManager.Settings.SaveHostname "string:'hostname'"
Error org.freedesktop.NetworkManager.Settings.PermissionDenied: Insufficient privileges.
Comment 2 Stef Walter 2014-05-05 06:11:45 UTC

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