1 // This file is part of systemd.
2 // See systemd-networkd.service(8) and polkit(8) for more information.
4 // Allow systemd-networkd to set timezone, get product UUID,
5 // and transient hostname
6 polkit.addRule(function(action, subject) {
7 if ((action.id == "org.freedesktop.hostname1.set-hostname" ||
8 action.id == "org.freedesktop.hostname1.get-product-uuid" ||
9 action.id == "org.freedesktop.timedate1.set-timezone") &&
10 subject.user == "systemd-network") {
11 return polkit.Result.YES;