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

diff -Nurp dde-api-5.5.25/misc/systemd/system/deepin-shutdown-sound.service dde-api-5.5.25-new/misc/systemd/system/deepin-shutdown-sound.service
--- dde-api-5.5.25/misc/systemd/system/deepin-shutdown-sound.service	2022-04-18 13:40:18.000000000 +0800
+++ dde-api-5.5.25-new/misc/systemd/system/deepin-shutdown-sound.service	2022-08-13 16:31:17.223356184 +0800
@@ -6,6 +6,19 @@ Conflicts=shutdown.target
 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