Policykit local authority being ignored with Network Manager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
policykit (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 12.04 (Precise Pangolin) 32-bit
While working on a workaround for bug #964705, I encountered an unexpected behavior with policykit and localauthority with respect to Network Manager. It seems that setting an override with the local authority doesn't function but if I change the source policy then it does. Note that I'm using xmlstarlet here to query and edit xml files (apt-get install xmlstarlet).
The default policy is:
xmlstarlet sel -t -v "/policyconfig/
auth_admin_keep
Which sets the action policy as:
pkaction --verbose --action-id org.freedesktop
org.freedesktop
description: Modify network connections for all users
message: System policy prevents modification of network settings for all users
vendor: NetworkManager
vendor_url: http://
icon: nm-icon
implicit any: no
implicit inactive: no
implicit active: auth_admin_keep
Yet it doesn't change with this local policy active (even after reboot):
cat /etc/polkit-
[Allow users to modify network settings]
Identity=
Action=
ResultAny=no
ResultInactive=no
ResultActive=yes
Looks like polkitd is active and nothing obviously wrong in the logs:
ps -Af | grep -i polkitd
root 1322 1 0 00:20 ? 00:00:00 /usr/lib/
grep -i polkit /var/log/syslog
... started daemon version 0.104 using authority implementation `local' version `0.104'
grep -i polkit /var/log/auth.log
... polkitd(
... polkitd(
... polkitd(
If I change the default policy file then it works as expected although it's not good practice:
dpkg-divert --rename --divert /usr/share/
xmlstarlet ed -u "/policyconfig/
xmlstarlet sel -t -v "/policyconfig/
yes
pkaction --verbose --action-id org.freedesktop
org.freedesktop
description: Modify network connections for all users
message: System policy prevents modification of network settings for all users
vendor: NetworkManager
vendor_url: http://
icon: nm-icon
implicit any: no
implicit inactive: no
implicit active: yes
What is going on here?
Have the exact same problem as you do. Don't count on the Ubuntu people to fix anything. Rather, expect them to try to assrape you (#1048393) or to delare your problem minor and wait for a year until it's fixed (#876626 ). They're probably working on important stuff regarding completely restructuring their GUI as we speak!