Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421577 - net-misc/networkmanager: $FILESDIR/01-org.freedesktop.NetworkManager.settings.modify.system.pkla unused with >=sys-auth/polkit-0.106
Summary: net-misc/networkmanager: $FILESDIR/01-org.freedesktop.NetworkManager.settings...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-17 14:16 UTC by Samuli Suominen (RETIRED)
Modified: 2012-07-05 02:36 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
01-org.freedesktop.NetworkManager.settings.modify.system.rules (01-org.freedesktop.NetworkManager.settings.modify.system.rules,195 bytes, text/plain)
2012-06-17 14:23 UTC, Samuli Suominen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2012-06-17 14:16:21 UTC
.pkla files are no longer used since polkit 0.106, thus the networkmanager ebuilds need to stop installing the file in $summary

see `man 8 polkitd` for instructions howto write new type of .rules file with JavaSript
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-06-17 14:23:27 UTC
Created attachment 315585 [details]
01-org.freedesktop.NetworkManager.settings.modify.system.rules

insinto /etc/polkit-1/rules.d
doins "${FILESDIR}"/01-org.freedesktop.NetworkManager.settings.modify.system.rules

Completely untested as I don't use NetworkManager.
Comment 2 Alexandre 2012-06-25 21:02:07 UTC
Just noticing: working here.
Comment 3 Alexandre 2012-06-26 05:34:54 UTC
Correction! Partially solved. Now allows to disconnect and connect again without issues (I only use wireless), but ask for adm password when:

* try to edit network connections;
* when networkmanager perform auto reconnect due to wireless signal hang or something;
* perhaps more that I have not figured out.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-06-27 10:37:09 UTC
polkit had some issues, but with 0.106-r5 if you copy the attachment in /etc/polkit-1/rules.d/ it shouldn't ask for any password during network adding/removing

Alexandre, your comments are confusing... it's not clear what is working and what is not. try to be more accurate, thanks.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-06-27 14:41:33 UTC
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.4.0-r2.ebuild?r1=1.4&r2=1.5

will wait for someone who is actually using networkmanager to commit the updated .rules file
Comment 6 Alexandre 2012-06-27 14:50:25 UTC
If I purposely disconnect and connect again, not ask for adm password. But when I lost the wireless signal and the system try to reconnect again when signal back, so its ask for adm password. Also ask when I try to change a network settings.

I'm updating now to polkit-0.106-r5.

Sorry about my bad english, I'm still working on it.
Comment 7 Alexandre 2012-06-27 15:55:49 UTC
polkit-0.106-r5 + previous attached rules seems solve at all. :)
Comment 8 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-07-01 12:20:24 UTC
(In reply to comment #1)
> Created attachment 315585 [details]
> 01-org.freedesktop.NetworkManager.settings.modify.system.rules
> 
> insinto /etc/polkit-1/rules.d
> doins
> "${FILESDIR}"/01-org.freedesktop.NetworkManager.settings.modify.system.rules
> 
> Completely untested as I don't use NetworkManager.

Works for me.  Thank you!
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2012-07-03 07:09:54 UTC
maintainers?
Comment 10 Randy Andy 2012-07-04 06:20:18 UTC
(In reply to comment #9)
> maintainers?

Hi Samuli,

Yesterday I tried to install version-0.106-r7 on ~32 and ~amd arch, but it fails on both machines with the same fault.
AFAIR it compiles fine, but install fails with something like this: couldn't find/open /path/to/files.xml or html which were marked as links in portage, something like this.
Sadly I haven't had the time to write a precise bug-report with the belonging errors/logs.
I will do it this evening when back from work, if no other could reproduce this til then.
Comment 11 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-07-04 07:57:45 UTC
Fixed, thanks for reporting. Sorry for the delay!

>*networkmanager-0.9.4.0-r3 (04 Jul 2012)
>
>  04 Jul 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  +files/01-org.freedesktop.NetworkManager.settings.modify.system.rules,
>  -networkmanager-0.9.4.0-r1.ebuild, +networkmanager-0.9.4.0-r3.ebuild,
>  -files/networkmanager-0.9.4.0-force-libnl1.1.patch,
>  +files/networkmanager-0.9.4.0-ipv6-route.patch:
>  Fix default ipv6 route issue on some networks (bug #417529, thanks to Marien
>  Zwart). Install polkit-1/rules.d file for polkit-0.106 support (bug #421577,
>  thanks to Samuli Suominen). Add epatch_user to make it easier for users to
>  locally patch networkmanager. Drop old.
Comment 12 Denis Lisov 2012-07-04 13:34:10 UTC
Wouldn't /usr/share/polkit-1/rules.d be a better place for a distribution-supplied config?
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2012-07-04 20:46:28 UTC
(In reply to comment #12)
> Wouldn't /usr/share/polkit-1/rules.d be a better place for a
> distribution-supplied config?

I don't have any strong opinion on that. Perhaps. File a new bug like:
"net-misc/{modem.network}manager: Move rules.d file to /usr/share"
Otherwise your comment might go unnoticed on this already resolved bug
Comment 14 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-07-05 02:36:42 UTC
(In reply to comment #12)
> Wouldn't /usr/share/polkit-1/rules.d be a better place for a
> distribution-supplied config?

You are right. Fixed in networkmanager-0.9.4.0-r4