network: request product UUID when DUIDType=uuid but DUIDRawData= is not set
Closes #9228.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user