gpsd/harden_gpsd.service.patch

24 lines
745 B
Diff

Index: gpsd/gpsd-3.23/systemd/gpsd.service.in
===================================================================
--- foo.old/python3/gpsd-3.23/systemd/gpsd.service.in
+++ foo/python3/gpsd-3.23/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=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
Type=forking
EnvironmentFile=-/etc/default/gpsd
EnvironmentFile=-/etc/sysconfig/gpsd