summaryrefslogtreecommitdiff
path: root/user/networkmanager/01-org.freedesktop.NetworkManager.rules
diff options
context:
space:
mode:
Diffstat (limited to 'user/networkmanager/01-org.freedesktop.NetworkManager.rules')
-rw-r--r--user/networkmanager/01-org.freedesktop.NetworkManager.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/user/networkmanager/01-org.freedesktop.NetworkManager.rules b/user/networkmanager/01-org.freedesktop.NetworkManager.rules
new file mode 100644
index 000000000..d00b26853
--- /dev/null
+++ b/user/networkmanager/01-org.freedesktop.NetworkManager.rules
@@ -0,0 +1,7 @@
+// Let users in plugdev group modify NetworkManager
+polkit.addRule(function(action, subject) {
+ if (action.id == "org.freedesktop.NetworkManager.settings.modify.system" &&
+ subject.isInGroup("plugdev") && subject.active) {
+ return "yes";
+ }
+});