File harden_usbmuxd.service.patch of Package usbmuxd
Index: usbmuxd-1.1.1+git69.523f700/systemd/usbmuxd.service.in
===================================================================
--- usbmuxd-1.1.1+git69.523f700.orig/systemd/usbmuxd.service.in
+++ usbmuxd-1.1.1+git69.523f700/systemd/usbmuxd.service.in
@@ -3,5 +3,16 @@ Description=Socket daemon for the usbmux
Documentation=man:usbmuxd(8)
[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
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
ExecStart=@sbindir@/usbmuxd --user usbmux --systemd
PIDFile=@runstatedir@/usbmuxd.pid