1 2 3 4 5 6
polkit.addRule(function(action, subject) { if (action.id.indexOf("org.freedesktop.udisks") == 0) { return polkit.Result.YES; } });