From Mageia wiki
Regex can also be used, I use this to allow multiseat usb:
/etc/polkit-1/rules.d/10-drives.rules
// Allow all users to mount devices without authentication
polkit.addRule(function(action, subject) {
if (action.id.match(/^org.freedesktop.udisks2.filesystem/)) {
return polkit.Result.YES;
}
});
// Allow to eject
polkit.addRule(function(action, subject) {
if (action.id.match(/^org.freedesktop.udisks2.eject/)) {
return polkit.Result.YES;
}
});