From b750101eb236130cf056c675997decbac904cc49 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:35:18 +0200 Subject: Adding upstream version 252.22. Signed-off-by: Daniel Baumann --- src/network/systemd-networkd.rules | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/network/systemd-networkd.rules (limited to 'src/network/systemd-networkd.rules') diff --git a/src/network/systemd-networkd.rules b/src/network/systemd-networkd.rules new file mode 100644 index 0000000..86cc849 --- /dev/null +++ b/src/network/systemd-networkd.rules @@ -0,0 +1,13 @@ +// This file is part of systemd. +// See systemd-networkd.service(8) and polkit(8) for more information. + +// 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; + } +}); -- cgit v1.2.3