]>
Commit | Line | Data |
---|---|---|
27dfc982 YW |
1 | // Allow systemd-networkd to set timezone, get product UUID, |
2 | // and transient hostname | |
2c99aba7 MP |
3 | polkit.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 | }); |