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
25 lines
890 B
Diff
25 lines
890 B
Diff
Index: dde-daemon-5.13.36/misc/systemd/services/deepin-accounts-daemon.service
|
|
===================================================================
|
|
--- dde-daemon-5.13.36.orig/misc/systemd/services/deepin-accounts-daemon.service
|
|
+++ dde-daemon-5.13.36/misc/systemd/services/deepin-accounts-daemon.service
|
|
@@ -8,6 +8,19 @@ After=nss-user-lookup.target lightdm.ser
|
|
Wants=nss-user-lookup.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=dbus
|
|
BusName=com.deepin.daemon.Accounts
|
|
ExecStart=/usr/lib/deepin-daemon/dde-system-daemon
|