91c3d6dcc4
- 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
24 lines
682 B
Diff
24 lines
682 B
Diff
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=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
|