polkit.addRule(function(action, subject) { if (action.id.startsWith("org.freedesktop.udisks2.") && subject.isInGroup("wheel")) return polkit.Result.YES; });