From: "Alexandre Restovtsev" <tetromino@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: net-misc/networkmanager/, net-misc/networkmanager/files/
Date: Sun, 23 Oct 2011 23:19:58 +0000 (UTC) [thread overview]
Message-ID: <17226d284963aeea7375a79d2cabce4028c543b8.tetromino@gentoo> (raw)
commit: 17226d284963aeea7375a79d2cabce4028c543b8
Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 23 23:14:12 2011 +0000
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
CommitDate: Sun Oct 23 23:18:40 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=17226d28
net-misc/networkmanager: allow users in 'plugdev' group to modify system connections
This should prevent the extremely annoying situation when a dropped
wireless connection immediately results in gnome-shell blocking the
screen and asking for the root password.
Thanks to Samuli Suominen for the solution.
---
...ktop.NetworkManager.settings.modify.system.pkla | 6 ++++++
...90.ebuild => networkmanager-0.9.1.90-r1.ebuild} | 13 +++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/net-misc/networkmanager/files/01-org.freedesktop.NetworkManager.settings.modify.system.pkla b/net-misc/networkmanager/files/01-org.freedesktop.NetworkManager.settings.modify.system.pkla
new file mode 100644
index 0000000..d443327
--- /dev/null
+++ b/net-misc/networkmanager/files/01-org.freedesktop.NetworkManager.settings.modify.system.pkla
@@ -0,0 +1,6 @@
+[Let users in plugdev group modify NetworkManager]
+Identity=unix-group:plugdev
+Action=org.freedesktop.NetworkManager.settings.modify.system
+ResultAny=no
+ResultInactive=no
+ResultActive=yes
\ No newline at end of file
diff --git a/net-misc/networkmanager/networkmanager-0.9.1.90.ebuild b/net-misc/networkmanager/networkmanager-0.9.1.90-r1.ebuild
similarity index 90%
rename from net-misc/networkmanager/networkmanager-0.9.1.90.ebuild
rename to net-misc/networkmanager/networkmanager-0.9.1.90-r1.ebuild
index 73ea51e..1d0734b 100644
--- a/net-misc/networkmanager/networkmanager-0.9.1.90.ebuild
+++ b/net-misc/networkmanager/networkmanager-0.9.1.90-r1.ebuild
@@ -84,6 +84,10 @@ pkg_pretend() {
fi
}
+pkg_setup() {
+ enewgroup plugdev
+}
+
src_prepare() {
# Don't build tests
epatch "${FILESDIR}/${PN}-0.9_rc3-fix-tests.patch"
@@ -133,6 +137,15 @@ src_install() {
insinto /etc/NetworkManager
newins "${FILESDIR}/nm-system-settings.conf-ifnet" nm-system-settings.conf
+ # Allow users in plugdev group to modify system connections
+ insinto /etc/polkit-1/localauthority/10-vendor.d
+ doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.pkla"
+
# Remove useless .la files
find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
}
+
+pkg_postinst() {
+ elog "To modify system network connections without needing to enter the"
+ elog "root password, add your user account to the 'plugdev' group."
+}
next reply other threads:[~2011-10-23 23:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-23 23:19 Alexandre Restovtsev [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-10-25 21:07 [gentoo-commits] proj/gnome:master commit in: net-misc/networkmanager/, net-misc/networkmanager/files/ Gilles Dartiguelongue
2014-04-24 22:35 Gilles Dartiguelongue
2011-10-27 2:44 Alexandre Restovtsev
2011-10-26 23:49 Alexandre Restovtsev
2011-02-28 7:48 Nirbheek Chauhan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17226d284963aeea7375a79d2cabce4028c543b8.tetromino@gentoo \
--to=tetromino@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox