Skip to content

Instantly share code, notes, and snippets.

@stbenjam
Created June 6, 2018 16:20
Show Gist options
  • Save stbenjam/e9eb497d3163ac861bde560f4f114043 to your computer and use it in GitHub Desktop.
Save stbenjam/e9eb497d3163ac861bde560f4f114043 to your computer and use it in GitHub Desktop.
Libvirt polkit rules
polkit.addRule(function(action, subject) {
if (action.id == "org.libvirt.unix.manage" &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment