summaryrefslogtreecommitdiff
path: root/src/network/systemd-networkd.rules
blob: 2e4bc42bfb307fbff1a612b518e7acaaacf455b4 (plain)
1
2
3
4
5
6
7
8
// Allow systemd-networkd to set timezone and transient hostname
polkit.addRule(function(action, subject) {
    if ((action.id == "org.freedesktop.hostname1.set-hostname" ||
         action.id == "org.freedesktop.timedate1.set-timezone") &&
        subject.user == "systemd-network") {
        return polkit.Result.YES;
    }
});