2021-12-22 15:26:08 +01:00
|
|
|
Index: squid-5.3/tools/systemd/squid.service
|
2021-12-07 13:01:22 +01:00
|
|
|
===================================================================
|
2021-12-22 15:26:08 +01:00
|
|
|
--- squid-5.3.orig/tools/systemd/squid.service
|
|
|
|
+++ squid-5.3/tools/systemd/squid.service
|
|
|
|
@@ -11,6 +11,18 @@ Documentation=man:squid(8)
|
2021-12-07 13:01:22 +01:00
|
|
|
After=network.target network-online.target nss-lookup.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
+# added automatically, for details please see
|
|
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
|
|
+ProtectSystem=full
|
|
|
|
+PrivateDevices=true
|
|
|
|
+ProtectHostname=true
|
|
|
|
+ProtectClock=true
|
|
|
|
+ProtectKernelTunables=true
|
|
|
|
+ProtectKernelModules=true
|
|
|
|
+ProtectKernelLogs=true
|
|
|
|
+ProtectControlGroups=true
|
|
|
|
+RestrictRealtime=true
|
2021-12-22 15:26:08 +01:00
|
|
|
+# end of automatic additions
|
2021-12-07 13:01:22 +01:00
|
|
|
Type=notify
|
|
|
|
PIDFile=/var/run/squid.pid
|
|
|
|
ExecStartPre=/usr/sbin/squid --foreground -z
|