From 815e18bc02b6568f4e9247a45bb1e769bd8d5a4fc53865c748ec3988ac961f53 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 18 Nov 2021 13:38:29 +0000 Subject: [PATCH] Accepting request 932180 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/932180 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=115 --- shadow.changes | 6 ++++++ shadow.service | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/shadow.changes b/shadow.changes index 14acf6d..ab7c955 100644 --- a/shadow.changes +++ b/shadow.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 16 15:58:46 UTC 2021 - Johannes Segitz + +- Added hardening to systemd service(s) (bsc#1181400). Modified: + * shadow.service + ------------------------------------------------------------------- Tue Nov 9 01:39:44 UTC 2021 - Stanislav Brabec diff --git a/shadow.service b/shadow.service index e7314f5..4137da1 100644 --- a/shadow.service +++ b/shadow.service @@ -2,6 +2,19 @@ Description=Verify integrity of password and group files [Service] +# added automatically, for details please see +# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort +ProtectSystem=full +ProtectHome=read-only +PrivateDevices=true +ProtectHostname=true +ProtectClock=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +RestrictRealtime=true +# end of automatic additions Type=oneshot ExecStart=/usr/sbin/pwck -r ExecStart=/usr/sbin/grpck -r