summaryrefslogtreecommitdiff
path: root/source/a/udisks2/20-plugdev-group-mount-override.rules
blob: c47a66cf222efc8150b64dc260de0ecf6e534a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* http://udisks.freedesktop.org/docs/latest/udisks-polkit-actions.html */

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.udisks2.filesystem-mount" &&
        subject.isInGroup("plugdev")) {
        return polkit.Result.YES;
    }
});

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.udisks2.eject-media" &&
        subject.isInGroup("plugdev")) {
        return polkit.Result.YES;
    }
});