Accepting request 926707 from home:jsegitz:branches:systemdhardening:network

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/926707
OBS-URL: https://build.opensuse.org/package/show/network/pen?expand=0&rev=10
This commit is contained in:
Dirk Mueller 2023-12-17 08:53:40 +00:00 committed by Git OBS Bridge
parent a295f09a78
commit 63153ff249
2 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Oct 18 14:17:33 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Modified:
* pen.service
-------------------------------------------------------------------
Mon Aug 17 20:00:26 UTC 2020 - Dirk Mueller <dmueller@suse.com>

22
pen.service Normal file
View File

@ -0,0 +1,22 @@
[Unit]
Description=A simple load balancer for tcp based protocols
After=time-sync.target nss-lookup.target syslog.socket remote-fs.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=forking
ExecStart=/usr/share/pen/scripts/rcpen start
ExecStop=/usr/share/pen/scripts/rcpen stop
[Install]
WantedBy=multi-user.system