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/918936 OBS-URL: https://build.opensuse.org/package/show/network/dnsmasq?expand=0&rev=136
25 lines
790 B
Diff
25 lines
790 B
Diff
Index: dnsmasq-2.85/contrib/systemd/dnsmasq.service
|
|
===================================================================
|
|
--- dnsmasq-2.85.orig/contrib/systemd/dnsmasq.service
|
|
+++ dnsmasq-2.85/contrib/systemd/dnsmasq.service
|
|
@@ -5,6 +5,19 @@ Before=network-online.target nss-lookup.
|
|
Wants=nss-lookup.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=dbus
|
|
BusName=uk.org.thekelleys.dnsmasq
|
|
ExecStartPre=/usr/sbin/dnsmasq --test
|