a970b4b2e3
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/924899 OBS-URL: https://build.opensuse.org/package/show/server:dns/nsd?expand=0&rev=88
29 lines
727 B
Desktop File
29 lines
727 B
Desktop File
[Unit]
|
|
Description=NSD DNS Server
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
# added automatically, for details please see
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
PrivateDevices=true
|
|
ProtectHostname=true
|
|
ProtectClock=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
ProtectControlGroups=true
|
|
RestrictRealtime=true
|
|
# end of automatic additions
|
|
Type=simple
|
|
PIDFile=/run/nsd/nsd.pid
|
|
#EnvironmentFile=-/etc/sysconfig/nsd
|
|
#ExecStart=/usr/sbin/nsd -D -c /etc/nsd/nsd.conf $OTHER_NSD_OPTS
|
|
ExecStart=/usr/sbin/nsd -d -c /etc/nsd/nsd.conf
|
|
ExecStopPost=/bin/rm -f /var/lib/nsd/xfrd.state
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|