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.rules6
1 files changed, 3 insertions, 3 deletions
diff --git a/user/networkmanager/01-org.freedesktop.NetworkManager.rules b/user/networkmanager/01-org.freedesktop.NetworkManager.rules
index d00b26853..a8aea44cb 100644
--- a/user/networkmanager/01-org.freedesktop.NetworkManager.rules
+++ b/user/networkmanager/01-org.freedesktop.NetworkManager.rules
@@ -1,7 +1,7 @@
-// Let users in plugdev group modify NetworkManager
+// Let users in netdev group modify NetworkManager
polkit.addRule(function(action, subject) {
- if (action.id == "org.freedesktop.NetworkManager.settings.modify.system" &&
- subject.isInGroup("plugdev") && subject.active) {
+ if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 &&
+ subject.isInGroup("netdev") && subject.active) {
return "yes";
}
});