3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific
Michael Weiss 483dbe9237 systemd: Allow setting the transient hostname via DHCP
This permits using method_set_hostname but still denies
method_set_static_hostname. As a result DHCP clients can now always set
the transient hostname via the SetHostname method of the D-Bus interface
of systemd-hostnamed (org.freedesktop.hostname1.set-hostname).
If the NixOS option networking.hostName is set to an empty string (or
"localhost") the static hostname (kernel.hostname but NOT /etc/hostname)
will additionally be updated (this is intended).

From "man hostnamectl": The transient hostname is a fallback value
received from network configuration. If a static hostname is set, and is
valid (something other than localhost), then the transient hostname is
not used.

Fix #74847.

Note: It's possible to restrict access to the org.freedesktop.hostname1
interface using Polkit rules.
2020-07-11 00:05:41 +02:00
..
bsd *-wrapper; Switch from infixSalt to suffixSalt 2020-05-12 00:44:44 -04:00
darwin yabai: 3.1.2 -> 3.2.0 2020-06-14 11:24:38 +01:00
linux systemd: Allow setting the transient hostname via DHCP 2020-07-11 00:05:41 +02:00
windows