wok-next diff polkit/stuff/10-udisks2.rules @ rev 20074
Up dooble, smtube
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Oct 25 05:01:33 2017 +0200 (2017-10-25) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/polkit/stuff/10-udisks2.rules Wed Oct 25 05:01:33 2017 +0200 1.3 @@ -0,0 +1,13 @@ 1.4 +// See the polkit(8) man page for more information 1.5 +// about configuring polkit. 1.6 + 1.7 +// Allow udisks2 to mount devices without authentication 1.8 +// for users in the "disk" group. 1.9 + 1.10 +polkit.addRule(function(action, subject) { 1.11 + if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" || 1.12 + action.id == "org.freedesktop.udisks2.filesystem-mount") && 1.13 + subject.isInGroup("disk")) { 1.14 + return polkit.Result.YES; 1.15 + } 1.16 +});