aboutsummaryrefslogtreecommitdiffstats
path: root/testing/modemmanager/modemmanager.rules
blob: 09e586e642db46ea9b5a3016fc4cdc23e14381e1 (plain)
1
2
3
4
5
6
7
8
// 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";
    }
});