SHA256
1
0
forked from pool/sssd
sssd/0003-Harden-sssd-kcm.service.patch

37 lines
1.1 KiB
Diff
Raw Normal View History

2024-10-16 14:19:19 +02:00
From 1fea2a4039f9e838554abe17bbf1513a8f99f348 Mon Sep 17 00:00:00 2001
2024-08-30 11:37:19 +02:00
From: Samuel Cabrero <scabrero@suse.de>
2024-10-16 14:19:19 +02:00
Date: Wed, 16 Oct 2024 14:05:02 +0200
Subject: [PATCH 3/4] Harden sssd-kcm.service
2024-08-30 11:37:19 +02:00
---
src/sysv/systemd/sssd-kcm.service.in | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/sysv/systemd/sssd-kcm.service.in b/src/sysv/systemd/sssd-kcm.service.in
2024-10-16 14:19:19 +02:00
index 0c839ec5c..b403cd709 100644
2024-08-30 11:37:19 +02:00
--- a/src/sysv/systemd/sssd-kcm.service.in
+++ b/src/sysv/systemd/sssd-kcm.service.in
@@ -8,6 +8,19 @@ After=sssd-kcm.socket
Also=sssd-kcm.socket
[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
2024-08-30 11:37:19 +02:00
+# end of automatic additions
Environment=DEBUG_LOGGER=--logger=files
2024-10-16 14:19:19 +02:00
ExecStartPre=+-/bin/chown -f @SSSD_USER@:@SSSD_USER@ @sssdconfdir@
2024-08-30 11:37:19 +02:00
ExecStartPre=+-/bin/chown -f @SSSD_USER@:@SSSD_USER@ @sssdconfdir@/sssd.conf
--
2024-10-16 14:19:19 +02:00
2.46.1
2024-08-30 11:37:19 +02:00