From 4f93f4c7b76bc42b1c460f0783ae2017d4df42b8 Mon Sep 17 00:00:00 2001 From: Mikhail Efremov Date: Thu, 11 Jul 2013 17:13:05 +0400 Subject: [PATCH] Allow 'wheel' group memebers to modify NM's systemwide connections. Add polkit rule for this. --- .../polkit-rules/70-SL-NM-allow-modify-system.rules | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 system-settings/polkit-rules/70-SL-NM-allow-modify-system.rules diff --git a/system-settings/polkit-rules/70-SL-NM-allow-modify-system.rules b/system-settings/polkit-rules/70-SL-NM-allow-modify-system.rules new file mode 100644 index 0000000..014dea1 --- /dev/null +++ b/system-settings/polkit-rules/70-SL-NM-allow-modify-system.rules @@ -0,0 +1,6 @@ +polkit.addRule(function(action, subject) { + if (action.id == "org.freedesktop.NetworkManager.settings.modify.system" && + subject.isInGroup("wheel")) { + return polkit.Result.YES; + }; +});