From d462a04966a10f144b1e7451ddb5c0848276bceea17accee4999e6ec121a0923 Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Mon, 22 Nov 2021 10:18:16 +0000 Subject: [PATCH] Accepting request 926699 from home:jsegitz:branches:systemdhardening:Base:System 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/926699 OBS-URL: https://build.opensuse.org/package/show/Base:System/quota?expand=0&rev=69 --- quota.changes | 6 ++++++ quotad.service | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/quota.changes b/quota.changes index 5ddc8d0..7358eae 100644 --- a/quota.changes +++ b/quota.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Oct 21 08:09:16 UTC 2021 - Johannes Segitz + +- Added hardening to systemd service(s) (bsc#1181400). Modified: + * quotad.service + ------------------------------------------------------------------- Mon Mar 8 23:43:44 UTC 2021 - Dirk Müller diff --git a/quotad.service b/quotad.service index 54b41d7..2b329cf 100644 --- a/quotad.service +++ b/quotad.service @@ -3,6 +3,19 @@ Description=Quota RPC monitor 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 EnvironmentFile=-/run/sysconfig/quotad ExecStart=/usr/sbin/rpc.rquotad -F ${RQUOTAD_ARGS} ExecStartPre=-/usr/lib/systemd/scripts/quotad_env.sh