units: re-drop ProtectHostname from systemd-hostnamed.service (#11792)
authorMartin Pitt <martinpitt@users.noreply.github.com>
Fri, 22 Feb 2019 07:04:37 +0000 (08:04 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Feb 2019 07:04:37 +0000 (08:04 +0100)
This was an overzealous setting from commit 99894b867f. Without this,
`hostnamectl set-hostname` fails with

    Could not set property: Access denied

as `sethostname()` fails with `EPERM`.

units/systemd-hostnamed.service.in

index 62e9b28..9c925e8 100644 (file)
@@ -25,7 +25,6 @@ PrivateNetwork=yes
 PrivateTmp=yes
 ProtectControlGroups=yes
 ProtectHome=yes
-ProtectHostname=yes
 ProtectKernelModules=yes
 ProtectKernelTunables=yes
 ProtectSystem=strict