wok-next view polkit/stuff/10-udisks2.rules @ rev 20833
prosody: what I see missing when I start the old prosody 0.9.4
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Sun Jun 17 19:03:23 2018 +0000 (2018-06-17) |
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 });