]>
Commit | Line | Data |
---|---|---|
2c99aba7 MP |
1 | // Allow systemd-networkd to set timezone and transient hostname |
2 | polkit.addRule(function(action, subject) { | |
3 | if ((action.id == "org.freedesktop.hostname1.set-hostname" || | |
4 | action.id == "org.freedesktop.timedate1.set-timezone") && | |
5 | subject.user == "systemd-network") { | |
6 | return polkit.Result.YES; | |
7 | } | |
8 | }); |