Accepting request 925133 from home:jsegitz:branches:systemdhardening:network:utilities

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/925133
OBS-URL: https://build.opensuse.org/package/show/network:utilities/openslp?expand=0&rev=74
This commit is contained in:
Lars Vogdt 2022-03-31 21:50:06 +00:00 committed by Git OBS Bridge
parent f1240a0c16
commit ec93100bb3
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 13 11:13:47 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Modified:
* slpd.service
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 24 17:07:52 CET 2020 - mls@suse.de Tue Mar 24 17:07:52 CET 2020 - mls@suse.de

View File

@ -3,6 +3,19 @@ Description=OpenSLP daemon for the Service Location Protocol
After=network.target nss-lookup.target After=network.target nss-lookup.target
[Service] [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=notify Type=notify
ExecStart=/usr/sbin/slpd -d ExecStart=/usr/sbin/slpd -d
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID