summaryrefslogtreecommitdiff
path: root/source/n/NetworkManager/10-org.freedesktop.NetworkManager.rules
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/NetworkManager/10-org.freedesktop.NetworkManager.rules')
-rw-r--r--source/n/NetworkManager/10-org.freedesktop.NetworkManager.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/n/NetworkManager/10-org.freedesktop.NetworkManager.rules b/source/n/NetworkManager/10-org.freedesktop.NetworkManager.rules
new file mode 100644
index 00000000..9d6557b3
--- /dev/null
+++ b/source/n/NetworkManager/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;
+ }
+});
+