[NetworkManager] Allow non-local users network control after PolicyKit authentication (rh #1145646)

Lubomir Rintel lkundrak at fedoraproject.org
Thu Oct 16 12:27:23 UTC 2014


commit 92d4bfc87914b0127e04c8e3b604ddc049066da8
Author: Stef Walter <stefw at redhat.com>
Date:   Mon Oct 13 16:06:46 2014 -0500

    Allow non-local users network control after PolicyKit authentication (rh #1145646)

 NetworkManager.spec            |    7 ++++++-
 non-local-session-polkit.patch |   24 ++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/NetworkManager.spec b/NetworkManager.spec
index cdaf227..35d6b4f 100644
--- a/NetworkManager.spec
+++ b/NetworkManager.spec
@@ -13,7 +13,7 @@
 %define snapshot .git20140704
 %define git_sha 6eb82acd
 %define realversion 0.9.10.0
-%define release_version 6
+%define release_version 7
 %define epoch_version 1
 
 %define obsoletes_nmver 1:0.9.9.95-1
@@ -78,6 +78,7 @@ Source2: 00-server.conf
 Source3: 20-connectivity-fedora.conf
 
 Patch1: 0001-explain-dns1-dns2.patch
+Patch2: non-local-session-polkit.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -314,6 +315,7 @@ by nm-connection-editor and nm-applet in a non-graphical environment.
 %setup -q -n NetworkManager-%{realversion}
 
 %patch1 -p1 -b .0001.explain-dns1-dns2.orig
+%patch2 -p1 -b .non-local-session-polkit.orig
 
 %build
 
@@ -583,6 +585,9 @@ fi
 %endif
 
 %changelog
+* Mon Oct 06 2014 Stef Walter <stefw at redhat.com> - 1:0.9.10.0-7.git20140704
+- Allow non-local users network control after PolicyKit authentication (rh #1145646)
+
 * Fri Sep  5 2014 Jiří Klimeš <jklimes at redhat.com> - 1:0.9.10.0-6.git20140704
 - connectivity: use HTTPS for connectivity checking (rh #113577)
 
diff --git a/non-local-session-polkit.patch b/non-local-session-polkit.patch
new file mode 100644
index 0000000..401a9a5
--- /dev/null
+++ b/non-local-session-polkit.patch
@@ -0,0 +1,24 @@
+From f044ff186b433ef3debab7651adc06115809afc6 Mon Sep 17 00:00:00 2001
+From: Marius Vollmer <mvollmer at redhat.com>
+Date: Mon, 6 Oct 2014 11:16:03 +0300
+Subject: [PATCH] policy: allow non-local admin sessions to control the network (rh #1145646)
+
+---
+ policy/org.freedesktop.NetworkManager.policy.in.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/policy/org.freedesktop.NetworkManager.policy.in.in b/policy/org.freedesktop.NetworkManager.policy.in.in
+index cb22999..e103cd9 100644
+--- a/policy/org.freedesktop.NetworkManager.policy.in.in
++++ b/policy/org.freedesktop.NetworkManager.policy.in.in
+@@ -58,6 +58,7 @@
+     <_description>Allow control of network connections</_description>
+     <_message>System policy prevents control of network connections</_message>
+     <defaults>
++      <allow_any>auth_admin</allow_any>
+       <allow_inactive>yes</allow_inactive>
+       <allow_active>yes</allow_active>
+     </defaults>
+-- 
+1.9.3
+


More information about the scm-commits mailing list