8115a427ea
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/917954 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=17
24 lines
797 B
Diff
24 lines
797 B
Diff
Index: dde-daemon-5.13.36/misc/systemd/services/hwclock_stop.service
|
|
===================================================================
|
|
--- dde-daemon-5.13.36.orig/misc/systemd/services/hwclock_stop.service
|
|
+++ dde-daemon-5.13.36/misc/systemd/services/hwclock_stop.service
|
|
@@ -3,6 +3,18 @@ Description=sync RTC from system time
|
|
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
|
|
+ProtectKernelTunables=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
ExecStart=hwclock -s
|
|
ExecStop=hwclock -w
|
|
RemainAfterExit=yes
|