]>
Commit | Line | Data |
---|---|---|
4c30eb57 ZJS |
1 | // This file is part of systemd. |
2 | // See systemd-networkd.service(8) and polkit(8) for more information. | |
3 | ||
27dfc982 YW |
4 | // Allow systemd-networkd to set timezone, get product UUID, |
5 | // and transient hostname | |
2c99aba7 MP |
6 | polkit.addRule(function(action, subject) { |
7 | if ((action.id == "org.freedesktop.hostname1.set-hostname" || | |
27dfc982 | 8 | action.id == "org.freedesktop.hostname1.get-product-uuid" || |
2c99aba7 MP |
9 | action.id == "org.freedesktop.timedate1.set-timezone") && |
10 | subject.user == "systemd-network") { | |
11 | return polkit.Result.YES; | |
12 | } | |
13 | }); |