From f4da58d0be451bc2416cd5b35891b7f47a91761573d6afec30d93b86469a9452 Mon Sep 17 00:00:00 2001 From: Daniel Donisa Date: Tue, 5 Oct 2021 07:19:08 +0000 Subject: [PATCH] Accepting request 922509 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/922509 OBS-URL: https://build.opensuse.org/package/show/network:utilities/knock?expand=0&rev=22 --- knock.changes | 6 ++++++ knockd.service | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/knock.changes b/knock.changes index 325b5f2..c166f75 100644 --- a/knock.changes +++ b/knock.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 28 13:19:54 UTC 2021 - Johannes Segitz + +- Added hardening to systemd service(s) (bsc#1181400). Modified: + * knockd.service + ------------------------------------------------------------------- Wed May 19 08:49:35 UTC 2021 - Daniel Donisa diff --git a/knockd.service b/knockd.service index a6f7689..6ee1183 100644 --- a/knockd.service +++ b/knockd.service @@ -3,6 +3,19 @@ Description=Port-Knocking Daemon After=network.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 ExecStart=/usr/sbin/knockd [Install]