Accepting request 932202 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/932202
OBS-URL: https://build.opensuse.org/package/show/network:utilities/ser2net?expand=0&rev=32
This commit is contained in:
Martin Hauke 2021-11-18 19:37:13 +00:00 committed by Git OBS Bridge
parent 7a876ecc66
commit 7e926feaa5
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 16 15:53:19 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Modified:
* ser2net.service
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Feb 6 21:28:46 UTC 2021 - Martin Hauke <mardnh@gmx.de> Sat Feb 6 21:28:46 UTC 2021 - Martin Hauke <mardnh@gmx.de>

View File

@ -3,6 +3,17 @@ Description=Proxy that allows tcp connections to serial ports
After=network.target After=network.target
[Service] [Service]
# added automatically, for details please see
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
ProtectSystem=full
ProtectHome=true
ProtectHostname=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
# end of automatic additions
ExecStart=/usr/sbin/ser2net -n ExecStart=/usr/sbin/ser2net -n
[Install] [Install]