Accepting request 923725 from home:jsegitz:branches:systemdhardening:network:messaging:mqtt

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/923725
OBS-URL: https://build.opensuse.org/package/show/network:messaging:mqtt/mosquitto?expand=0&rev=57
This commit is contained in:
Martin Hauke 2021-10-07 19:27:48 +00:00 committed by Git OBS Bridge
parent bddcf02d37
commit 30ef470ecb
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 6 14:18:36 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Modified:
* mosquitto.service
-------------------------------------------------------------------
Wed Jun 9 19:10:49 UTC 2021 - Martin Hauke <mardnh@gmx.de>

View File

@ -3,6 +3,19 @@ Description=Mosquitto MQTT v3.1/v3.1.1 Broker
Documentation=man:mosquitto.conf(5) man:mosquitto(8)
[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
User=mosquitto
Group=mosquitto