X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=units%2Fsystemd-hostnamed.service.in;h=9c925e80d9fe57bb1acb0bc3c0d2d4a4e0e6ab33;hb=9a43fc6a2ad9e88719c4496fbeebf18cfb65cbb2;hp=259b451cbdf49405d75c74a14caee4bfad52d611;hpb=6a716208b346b742053cfd01e76f76fb27c4ea47;p=thirdparty%2Fsystemd.git diff --git a/units/systemd-hostnamed.service.in b/units/systemd-hostnamed.service.in index 259b451cbdf..9c925e80d9f 100644 --- a/units/systemd-hostnamed.service.in +++ b/units/systemd-hostnamed.service.in @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-2.1+ +# # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it @@ -8,16 +10,29 @@ [Unit] Description=Hostname Service Documentation=man:systemd-hostnamed.service(8) man:hostname(5) man:machine-info(5) -Documentation=http://www.freedesktop.org/wiki/Software/systemd/hostnamed +Documentation=https://www.freedesktop.org/wiki/Software/systemd/hostnamed [Service] -ExecStart=@rootlibexecdir@/systemd-hostnamed BusName=org.freedesktop.hostname1 CapabilityBoundingSet=CAP_SYS_ADMIN -SecureBits=noroot noroot-locked -WatchdogSec=1min -PrivateTmp=yes +ExecStart=@rootlibexecdir@/systemd-hostnamed +IPAddressDeny=any +LockPersonality=yes +MemoryDenyWriteExecute=yes +NoNewPrivileges=yes PrivateDevices=yes PrivateNetwork=yes -ProtectSystem=yes +PrivateTmp=yes +ProtectControlGroups=yes ProtectHome=yes +ProtectKernelModules=yes +ProtectKernelTunables=yes +ProtectSystem=strict +ReadWritePaths=/etc +RestrictAddressFamilies=AF_UNIX +RestrictNamespaces=yes +RestrictRealtime=yes +SystemCallArchitectures=native +SystemCallErrorNumber=EPERM +SystemCallFilter=@system-service sethostname +WatchdogSec=3min