summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2019-07-22 11:10:30 +0200
committerKarel Zak2019-07-22 11:10:30 +0200
commitc64d452b3eb85fe55e238144082247b05cc143ea (patch)
treee060005a4026e0f0247e253be9676cde6bf97ec8
parentlibfdisk: don't use NTFS as MBR (diff)
downloadkernel-qcow2-util-linux-c64d452b3eb85fe55e238144082247b05cc143ea.tar.gz
kernel-qcow2-util-linux-c64d452b3eb85fe55e238144082247b05cc143ea.tar.xz
kernel-qcow2-util-linux-c64d452b3eb85fe55e238144082247b05cc143ea.zip
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>
-rw-r--r--sys-utils/fstrim.service.in2
1 files changed, 1 insertions, 1 deletions
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