network: request product UUID when DUIDType=uuid but DUIDRawData= is not set

Closes #9228.
This commit is contained in:
Yu Watanabe
2018-08-08 10:15:00 +09:00
parent fff1f40c9b
commit 27dfc98275
7 changed files with 212 additions and 3 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
// Allow systemd-networkd to set timezone and transient hostname
// Allow systemd-networkd to set timezone, get product UUID,
// and transient hostname
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.hostname1.set-hostname" ||
action.id == "org.freedesktop.hostname1.get-product-uuid" ||
action.id == "org.freedesktop.timedate1.set-timezone") &&
subject.user == "systemd-network") {
return polkit.Result.YES;