gpsd/harden_gpsdctl@.service.patch
Dirk Stoecker 91c3d6dcc4 Accepting request 921015 from home:adkorte:branches:Application:Geo
- Don't use gpsd version in patches (will break with every update)
  % harden_gpsd.service.patch
  % harden_gpsdctl@.service.patch

OBS-URL: https://build.opensuse.org/request/show/921015
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gpsd?expand=0&rev=143
2021-09-23 06:07:23 +00:00

24 lines
701 B
Diff

Index: systemd/gpsdctl@.service.in
===================================================================
--- systemd/gpsdctl@.service.in
+++ systemd/gpsdctl@.service.in
@@ -5,6 +5,18 @@ BindsTo=dev-%i.device
After=dev-%i.device
[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=oneshot
Environment="GPSD_SOCKET=@RUNDIR@/gpsd.sock"
EnvironmentFile=-/etc/default/gpsd