10-udisks2.rules 358 B

12345678910
  1. // Allow udisks2 to mount devices without authentication
  2. // for users in the "storage" group.
  3. polkit.addRule(function(action, subject) {
  4. if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
  5. action.id == "org.freedesktop.udisks2.filesystem-mount") &&
  6. subject.isInGroup("storage")) {
  7. return polkit.Result.YES;
  8. }
  9. });