]> git.ipfire.org Git - thirdparty/pdns.git/blame - pdns/ixfrdist.service.in
Meson: Add systemd feature support for service files
[thirdparty/pdns.git] / pdns / ixfrdist.service.in
CommitLineData
b14d512f
PL
1[Unit]
2Description=PowerDNS IXFR Distributor
3Documentation=man:ixfrdist(1)
0a7eb290 4Documentation=man:ixfrdist.yml(5)
b14d512f
PL
5Documentation=https://doc.powerdns.com
6Wants=network-online.target
c6725600 7After=network-online.target time-sync.target
b14d512f
PL
8
9[Service]
10Type=simple
b14d512f
PL
11ExecStart=@bindir@/ixfrdist
12Restart=on-failure
13RestartSec=1
14StartLimitInterval=0
ddf3fafa
RG
15
16# Sandboxing
afa0d592 17CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID
ddf3fafa 18LockPersonality=true
b14d512f 19NoNewPrivileges=true
ddf3fafa
RG
20PrivateDevices=true
21PrivateTmp=true
22# Setting PrivateUsers=true prevents us from opening our sockets
23ProtectClock=true
24ProtectControlGroups=true
b14d512f 25ProtectHome=true
ddf3fafa
RG
26ProtectHostname=true
27ProtectKernelLogs=true
28ProtectKernelModules=true
29ProtectKernelTunables=true
30ProtectSystem=full
b14d512f 31RestrictAddressFamilies=AF_INET AF_INET6
ddf3fafa
RG
32RestrictNamespaces=true
33RestrictRealtime=true
34RestrictSUIDSGID=true
35SystemCallArchitectures=native
36SystemCallFilter=~ @clock @debug @module @mount @raw-io @reboot @swap @cpu-emulation @obsolete
3a0c3b68 37ProtectProc=invisible
77a8401f
PL
38PrivateIPC=true
39RemoveIPC=true
a4e4a9d0 40DevicePolicy=closed
3b78486a 41MemoryDenyWriteExecute=true
b14d512f
PL
42
43[Install]
44WantedBy=multi-user.target