summaryrefslogtreecommitdiff
path: root/src/hostname/systemd-networkd-hostname.rules
blob: b7b780da9e6971d9a44ce820ac58f5de50866c69 (plain)
1
2
3
4
5
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.hostname1.set-hostname" && subject.user == "systemd-network") {
        return polkit.Result.YES;
    }
});