Skip to content

Instantly share code, notes, and snippets.

@leojava
Forked from grawity/_Example polkit rules_.md
Created September 28, 2017 07:06
Show Gist options
  • Select an option

  • Save leojava/6f8faea578372f76fc7d2106a9686e62 to your computer and use it in GitHub Desktop.

Select an option

Save leojava/6f8faea578372f76fc7d2106a9686e62 to your computer and use it in GitHub Desktop.
# /etc/polkit-1/rules.d/allow-mount-system.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount-system" &&
subject.local && subject.active && subject.isInGroup("users")) {
return polkit.Result.YES;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment