summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/00-hostnamed-network-user.conf
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd/00-hostnamed-network-user.conf')
-rw-r--r--meta/recipes-core/systemd/systemd/00-hostnamed-network-user.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/00-hostnamed-network-user.conf b/meta/recipes-core/systemd/systemd/00-hostnamed-network-user.conf
new file mode 100644
index 0000000000..6b224ba9b9
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/00-hostnamed-network-user.conf
@@ -0,0 +1,6 @@
+[Service]
+# By running with these options instead of root, networkd is allowed to request
+# a hostname change via DBUS when policykit is not present
+User=systemd-network
+Group=systemd-hostname
+AmbientCapabilities=CAP_SYS_ADMIN