gjdwebserver-overlay/net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules

8 lines
293 B
Plaintext
Raw Normal View History

2021-03-24 22:57:24 +01:00
// Let users in plugdev group modify ModemManager
polkit.addRule(function(action, subject) {
if (/^org\.freedesktop\.ModemManager1\.(Device\.Control|Contacts|Messaging|Location)$/.test(action.id) &&
subject.isInGroup("plugdev") && subject.active) {
return "yes";
}
});