2.34-4: add missing patch

This commit is contained in:
Karel Zak 2019-12-16 17:44:15 +01:00
parent cdfdebd9ba
commit a422089368
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
From c64d452b3eb85fe55e238144082247b05cc143ea Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Mon, 22 Jul 2019 11:10:30 +0200
Subject: [PATCH] fstrim: fix systemd service protection
ProtectHome=yes makes /home inaccessible, but we need to open the
directories (mountpoints) read-only.
Addresses: https://github.com/karelzak/util-linux/issues/824
Signed-off-by: Karel Zak <kzak@redhat.com>
---
sys-utils/fstrim.service.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-utils/fstrim.service.in b/sys-utils/fstrim.service.in
index 516023ed8..2a8dc1d3a 100644
--- a/sys-utils/fstrim.service.in
+++ b/sys-utils/fstrim.service.in
@@ -6,7 +6,7 @@ Documentation=man:fstrim(8)
Type=oneshot
ExecStart=@sbindir@/fstrim --fstab --verbose --quiet
ProtectSystem=strict
-ProtectHome=yes
+ProtectHome=read-only
PrivateDevices=no
PrivateNetwork=yes
PrivateUsers=no
--
2.21.0