wok-next view polkit105/stuff/10-udisks2.rules @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | |
children |
line source
1 // See the polkit(8) man page for more information
2 // about configuring polkit.
4 // Allow udisks2 to mount devices without authentication
5 // for users in the "disk" group.
7 polkit.addRule(function(action, subject) {
8 if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
9 action.id == "org.freedesktop.udisks2.filesystem-mount") &&
10 subject.isInGroup("disk")) {
11 return polkit.Result.YES;
12 }
13 });