]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/systemd-networkd.rules
Merge pull request #16143 from fbuihuu/fstab-generator-fix
[thirdparty/systemd.git] / src / network / systemd-networkd.rules
CommitLineData
27dfc982
YW
1// Allow systemd-networkd to set timezone, get product UUID,
2// and transient hostname
2c99aba7
MP
3polkit.addRule(function(action, subject) {
4 if ((action.id == "org.freedesktop.hostname1.set-hostname" ||
27dfc982 5 action.id == "org.freedesktop.hostname1.get-product-uuid" ||
2c99aba7
MP
6 action.id == "org.freedesktop.timedate1.set-timezone") &&
7 subject.user == "systemd-network") {
8 return polkit.Result.YES;
9 }
10});