summaryrefslogtreecommitdiff
path: root/source/l/polkit/10-org.freedesktop.NetworkManager.rules
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/polkit/10-org.freedesktop.NetworkManager.rules')
-rw-r--r--source/l/polkit/10-org.freedesktop.NetworkManager.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/l/polkit/10-org.freedesktop.NetworkManager.rules b/source/l/polkit/10-org.freedesktop.NetworkManager.rules
new file mode 100644
index 00000000..9d6557b3
--- /dev/null
+++ b/source/l/polkit/10-org.freedesktop.NetworkManager.rules
@@ -0,0 +1,7 @@
+polkit.addRule(function(action, subject) {
+ if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 &&
+ subject.isInGroup("netdev")) {
+ return polkit.Result.YES;
+ }
+});
+