Accepting request 933797 from home:jsegitz:branches:systemdhardening:server:http

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/933797
OBS-URL: https://build.opensuse.org/package/show/server:http/thttpd?expand=0&rev=47
This commit is contained in:
Marcus Rückert 2022-05-31 16:27:18 +00:00 committed by Git OBS Bridge
parent d591f8a23a
commit df9f95f544
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 24 15:13:25 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Modified:
* thttpd.service
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 14 08:42:14 UTC 2020 - Vítězslav Čížek <vcizek@suse.com> Thu May 14 08:42:14 UTC 2020 - Vítězslav Čížek <vcizek@suse.com>

View File

@ -2,6 +2,19 @@
Description=Tiny HTTP Daemon Description=Tiny HTTP Daemon
[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
PIDFile=/run/thttpd.pid PIDFile=/run/thttpd.pid
ExecStart=/usr/sbin/thttpd -D -C /etc/thttpd.conf ExecStart=/usr/sbin/thttpd -D -C /etc/thttpd.conf
Restart=always Restart=always