polkit.addRule(function(action, subject){ if (action.id == "org.freedesktop.udisks2.filesystem-mount"){ return polkit.Result.AUTH_ADMIN; } });