diff options
author | Karel Zak | 2019-07-22 11:10:30 +0200 |
---|---|---|
committer | Karel Zak | 2019-07-22 11:10:30 +0200 |
commit | c64d452b3eb85fe55e238144082247b05cc143ea (patch) | |
tree | e060005a4026e0f0247e253be9676cde6bf97ec8 | |
parent | libfdisk: don't use NTFS as MBR (diff) | |
download | kernel-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.in | 2 |
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 |