summaryrefslogtreecommitdiff
path: root/src/remote/libvirtd.rules
blob: 01a15fac2e2866653052b0bb6e20b32c4d23242e (plain)
1
2
3
4
5
6
7
8
9
// Allow any user in the 'libvirt' group to connect to system libvirtd
// without entering a password.

polkit.addRule(function(action, subject) {
    if (action.id == "org.libvirt.unix.manage" &&
        subject.isInGroup("libvirt")) {
        return polkit.Result.YES;
    }
});