diff options
Diffstat (limited to 'net-misc/networkmanager/files/01-org.freedesktop.NetworkManager.settings.modify.system.rules')
-rw-r--r-- | net-misc/networkmanager/files/01-org.freedesktop.NetworkManager.settings.modify.system.rules | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net-misc/networkmanager/files/01-org.freedesktop.NetworkManager.settings.modify.system.rules b/net-misc/networkmanager/files/01-org.freedesktop.NetworkManager.settings.modify.system.rules new file mode 100644 index 0000000..d00b268 --- /dev/null +++ b/net-misc/networkmanager/files/01-org.freedesktop.NetworkManager.settings.modify.system.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"; + } +}); |