at/harden_atd.service.patch
Danilo Spinella 76959e1413 Accepting request 933259 from home:jsegitz:branches:Base:System
- Drop ProtectSystem and ProtectHome hardening. Unfortunately they're 
  breaking at jobs (boo#1192294)

OBS-URL: https://build.opensuse.org/request/show/933259
OBS-URL: https://build.opensuse.org/package/show/Base:System/at?expand=0&rev=120
2021-11-23 16:33:04 +00:00

23 lines
744 B
Diff

Index: at-3.2.2/atd.service.in
===================================================================
--- at-3.2.2.orig/atd.service.in
+++ at-3.2.2/atd.service.in
@@ -4,6 +4,17 @@ Documentation=man:atd(8)
After=remote-fs.target nss-user-lookup.target
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+PrivateDevices=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
ExecStartPre=-find @atjobdir@ -type f -name "=*" -not -newercc /run/systemd -delete
ExecStart=@sbindir@/atd -f
IgnoreSIGPIPE=false