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

updated fail2ban (0.9.0 -> 0.11.1)
author Hans-G?nter Theisgen
date Fri Jun 26 15:26:10 2020 +0100 (2020-06-26)
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 });