Bug 6936 - networkmanager doesn't switch between wifi networks after update to polkit 0.106
Summary: networkmanager doesn't switch between wifi networks after update to polkit 0.106
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: Mageia 3
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO, PATCH
Depends on:
Blocks: 7557
  Show dependency treegraph
 
Reported: 2012-08-02 18:35 CEST by Joseph Wang
Modified: 2019-04-04 10:20 CEST (History)
9 users (show)

See Also:
Source RPM: polkit
CVE:
Status comment:


Attachments

Description Joseph Wang 2012-08-02 18:35:14 CEST
Description of problem:

After I move everything to /usr and then upgrade to the latest NM, I don't seem to be able to add to any new wifi networks.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. move /usr
2. start gnome
3. switch wifi icon to new network
4. there are no messages in log and nothing happens

Everything seems to work if I switch between preexisting networks.  Perhaps a problem with usermode.  I would expect when switching to a new network that I would see a root window letting me enter a new password.
Comment 1 Manuel Hiebel 2012-08-06 19:39:30 CEST
really nothing in /var/log/syslog ?

CC: (none) => mageia

Comment 2 Joseph Wang 2012-08-07 15:16:21 CEST
Yes nothing in syslog.  I think I know why.  What happens when you switch net applet to another access point, a dialog comes up asking for root so that you can enter the AP password.  This root dialog is not coming up.  So this may be an issue with polkit or usermode.

Because NM never gets contacted, nothing goes to syslog.
Comment 3 Joseph Wang 2012-08-23 17:20:41 CEST
I found the problem.  It's likely because there is an older polkit-gnome

Running the polkit-gnome daemon on the command line gives me an assertion

** (polkit-gnome-authentication-agent-1:26149): CRITICAL **: polkit_agent_listener_initiate_authentication: assertion `identities != NULL' failed
Joseph Wang 2012-08-23 17:21:09 CEST

Summary: networkmanager doesn't switch between wifi networks after /usr move => networkmanager doesn't switch between wifi networks after gnome 3.5 update

Comment 4 Colin Guthrie 2012-08-29 23:47:14 CEST
@Joseph What package was the old one? polkit-gnome 0.105 seems to be the newest version available. Not sure about the assertion you encounter, but I certainly have the daemon running here and it seems to run without any issues :s
Comment 5 Joseph Wang 2012-09-01 03:28:16 CEST
Seems to be related to this issue...

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

running policykit directly seems to lock....

[joe@mcdull ~]$ sudo /usr/lib/polkit-1/polkitd --replace &
[1] 5807
[joe@mcdull ~]$ pkexec bash
Comment 6 Joseph Wang 2012-09-01 05:44:54 CEST
polkit may be a red herring since I got it to work for non-networkmanager things

Maybe wpa_supplicant is a problem?  I'm getting this e-mail message when try to switch wifi

Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
/sbin/ifdown: interface wlan0 is controlled by NetworkManager; skipping.
/sbin/ifup: interface wlan0 is controlled by NetworkManager; skipping.
Comment 7 Joseph Wang 2012-09-01 19:35:10 CEST
No.  There is definitely something odd about polkit.  When I change polkit_agent_listener_initiate_authentication so that all of the auth_admin_keep's are changed to yes, everything seems to work although it's not asking for root passwords.

I'm wondering if the usr move changed something that polkit-gnome is looking for?

Also I'm running zh-TW.
Joseph Wang 2012-09-02 07:26:03 CEST

Summary: networkmanager doesn't switch between wifi networks after gnome 3.5 update => networkmanager doesn't switch between wifi networks after update to polkit 0.106

Comment 8 Joseph Wang 2012-09-02 07:29:26 CEST
FOUND IT!!!!! - It's a 0.106 issue when the conversion to javascript

The problem was that  /etc/polkit-1/rules.d/50-default.rules contains only the unix-group:wheel but not that the unix-user tag

Since there is no user, polkit just drops the request since the unix-user is NULL.

Changing 50-default.rules to return

    return ["unix-group:wheel", "unix-user:root"];

makes everything work.
Comment 9 Philippe Leblanc 2012-09-21 16:32:42 CEST
I would like to confirm the existence of this bug in cauldron on the way to mga3. I could launch the network manager connection editor but it wouldn't allow me to edit connections due to root password dialog not appearing. I would also like to add that the fix proposed in the previous comment works. After editing 50-default.rules, I am now able to use network manager as expected.

CC: (none) => philippe.l

Manuel Hiebel 2012-09-23 20:52:23 CEST

Keywords: (none) => PATCH
Target Milestone: --- => Mageia 3
Source RPM: networkmanager-0.9.5.96-1.mga3 => polkit

Manuel Hiebel 2012-09-23 20:54:18 CEST

CC: (none) => olav, tmb

Manuel Hiebel 2012-09-23 21:30:56 CEST

Blocks: (none) => 7557

Comment 10 Colin Guthrie 2012-10-28 12:41:17 CET
I can't seem to reproduce this error. Whenever I try to switch to a new network, the first time I try I have to enter my user password via a Gnome Shell auth dialog popup. Once this is done, I can attempt happily to switch to other networks without further authentication (i.e. it's remembered my auth).

I don't know but polkit-gnome-authentication-agent-1 is likely not needed under recent gnome-shell which perhaps has a built in agent?

I did all this via the gnome-shell UI.

Running nm-connection-editor as my user, and deleting some old wifi networks, I was also prompted for my user password before being allowed to make changes, but this all worked fine.


It could be that I'm prompted for my user password rather than the root one as I'm in the wheel group, but I'd imagine the glue that makes this all work would be the same regardless (i.e. the bit that makes the dialog pop up appears to be working).

Any progress on your side?
Comment 11 Frank Griffin 2012-10-29 13:24:12 CET
Please refer to the discussion in bug#7873 and bug#2160 and see if your problems with NM go away if you either allow GNOME (if you have it installed) to activate it or you install plasma-network-management under KDE, add it to your panel, and use it to configure your SSID.

For NM to handle wireless correctly, it needs to create SSID-specific files of its own by parsing the ifcfg files produced by drakconnect.  GNOME's nm-applet does this automatically, since it has no option to *not* use NM, but since NM isn't the default yet for other desktops, it doesn't happen automatically there.  

You'll need to install NM and let it start, and recreate your wireless interface with drakconnect specifying "Allow NM to control this interface".

Please test and post your results, as whether NM works for all the chips involved when it's properly configured will have a significant impact on how it needs to be handled for non-GNOME desktops in MGA3.
Comment 12 Frank Griffin 2012-10-29 15:04:08 CET
(In reply to comment #11)

n/a here

CC: (none) => ftg

Manuel Hiebel 2012-10-29 18:23:41 CET

Keywords: (none) => NEEDINFO

Comment 13 roelof Wobben 2013-01-06 10:37:40 CET
@Joseph : Can you report of comment 11 solve your problem ?

Roelof

CC: (none) => r.wobben

Comment 14 Frank Griffin 2013-01-17 17:22:29 CET
Comment 11 was auto-added to all outstanding NM bugs.  I then went through them individually.  Per comment 12, it doesn't apply here.
Comment 15 Samuel Verschelde 2013-08-26 15:33:27 CEST
Colin, Joseph, what's the status of this bug? Was the patch from comment #8 applied? Thanks!
Samuel Verschelde 2013-08-26 15:33:39 CEST

CC: (none) => stormi

Comment 16 Nic Baxter 2015-03-31 03:45:32 CEST
Since there are insufficient details provided in this report for us to investigate the issue further, and we have not received feedback to the information we have requested above, we will assume the problem was not reproducible, or has been fixed in one of the updates we have released for the reporter's distribution.

Users who have experienced this problem are encouraged to upgrade to the latest update of their distribution, and if this issue turns out to still be reproducible in the latest update, please reopen this bug with additional information.

Closing as OLD.

Status: NEW => RESOLVED
CC: (none) => nic
Resolution: (none) => OLD

ankit saini 2019-04-04 09:02:58 CEST

CC: (none) => ankesaini99


Note You need to log in before you can comment on or make changes to this bug.