summaryrefslogtreecommitdiff
path: root/src/hostname/systemd-networkd-hostname.rules
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostname/systemd-networkd-hostname.rules')
-rw-r--r--src/hostname/systemd-networkd-hostname.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hostname/systemd-networkd-hostname.rules b/src/hostname/systemd-networkd-hostname.rules
new file mode 100644
index 0000000000..b7b780da9e
--- /dev/null
+++ b/src/hostname/systemd-networkd-hostname.rules
@@ -0,0 +1,5 @@
+polkit.addRule(function(action, subject) {
+ if (action.id == "org.freedesktop.hostname1.set-hostname" && subject.user == "systemd-network") {
+ return polkit.Result.YES;
+ }
+});