forked from pool/pesign
Marcus Meissner
7325262251
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/926696 OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign?expand=0&rev=63
25 lines
732 B
Diff
25 lines
732 B
Diff
Index: pesign-113/src/pesign.service.in
|
|
===================================================================
|
|
--- pesign-113.orig/src/pesign.service.in
|
|
+++ pesign-113/src/pesign.service.in
|
|
@@ -3,6 +3,19 @@ Description=Pesign signing daemon
|
|
|
|
[Service]
|
|
PrivateTmp=true
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+ProtectSystem=full
|
|
+ProtectHome=true
|
|
+PrivateDevices=true
|
|
+ProtectHostname=true
|
|
+ProtectClock=true
|
|
+ProtectKernelTunables=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
Type=forking
|
|
PIDFile=/run/pesign.pid
|
|
ExecStart=/usr/bin/pesign --daemonize
|