summarylogtreecommitdiffstats
path: root/lokinet.rules
blob: b05edff77efc9351fe67a01189e47f1f9b8789b7 (plain)
1
2
3
4
5
6
7
8
/* Allow lokinet to set DNS settings */
polkit.addRule(function(action, subject) {
    if ((action.id == "org.freedesktop.resolve1.set-dns-servers" ||
         action.id == "org.freedesktop.resolve1.set-domains") &&
        subject.user == "lokinet") {
        return polkit.Result.YES;
    }
});