File harden_gpsd.service.patch of Package gpsd
Index: systemd/gpsd.service.in
===================================================================
--- systemd/gpsd.service.in
+++ systemd/gpsd.service.in
@@ -5,6 +5,18 @@ Requires=gpsd.socket
After=chronyd.service
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectClock=false
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
Type=forking
EnvironmentFile=-/etc/default/gpsd
EnvironmentFile=-/etc/sysconfig/gpsd