wok-next view polkit/stuff/10-udisks2.rules @ rev 21207

try to build asterisk again
author Hans-G?nter Theisgen
date Mon Dec 02 09:52:22 2019 +0100 (2019-12-02)
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 });