fwupd/harden_fwupd-offline-update.service.patch
Dominique Leuenberger 534313d8ac - Correct efi_fw_update arch list:
* Remove ppc64le and s390x - these aren't supported
  * Add armv6hl/armv7hl and riscv64 - support recently added

OBS-URL: https://build.opensuse.org/package/show/Base:System/fwupd?expand=0&rev=198
2025-01-06 09:46:45 +00:00

22 lines
749 B
Diff

Index: fwupd-1.7.2/data/fwupd-offline-update.service.in
===================================================================
--- fwupd-1.7.2.orig/data/fwupd-offline-update.service.in
+++ fwupd-1.7.2/data/fwupd-offline-update.service.in
@@ -8,6 +8,16 @@ After=sysinit.target system-update-pre.t
Before=shutdown.target system-update.target
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelTunables=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
Type=oneshot
ExecStart=@libexecdir@/fwupd/fwupdoffline
FailureAction=reboot