summaryrefslogtreecommitdiff
path: root/net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules
blob: 7fca6472611e30c5a73c4ed93ee446034ef9a6dd (plain)
1
2
3
4
5
6
7
// 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";
    }
});