1 // Allow systemd-networkd to set timezone, get product UUID,
2 // and transient hostname
3 polkit.addRule(function(action, subject) {
4 if ((action.id == "org.freedesktop.hostname1.set-hostname" ||
5 action.id == "org.freedesktop.hostname1.get-product-uuid" ||
6 action.id == "org.freedesktop.timedate1.set-timezone") &&
7 subject.user == "systemd-network") {
8 return polkit.Result.YES;