File harden_deepin-shutdown-sound.service.patch of Package deepin-api

diff -Nur dde-api-5.5.30/misc/systemd/system/deepin-shutdown-sound.service dde-api-5.5.30-new/misc/systemd/system/deepin-shutdown-sound.service
--- dde-api-5.5.30/misc/systemd/system/deepin-shutdown-sound.service	2022-08-16 16:24:58.000000000 +0800
+++ dde-api-5.5.30-new/misc/systemd/system/deepin-shutdown-sound.service	2022-08-29 21:59:43.147524369 +0800
@@ -6,6 +6,19 @@
 Before=shutdown.target
 
 [Service]
+# 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=simple
 ExecStart=/usr/bin/true
 ExecStop=/usr/lib/deepin-api/deepin-shutdown-sound

openSUSE Build Service is sponsored by