]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace: tweak checks whether we can mount image read-only
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Jan 2020 15:25:11 +0000 (16:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Jan 2020 10:18:02 +0000 (11:18 +0100)
commitc8c535d589cce28f586e03a291be93cb2e48cb97
tree061ef20363e6bb675113e7d86e9b121cd850bdc0
parent9a2ec8f7a6d55edc029eb83d23bb5cc786b24edb
namespace: tweak checks whether we can mount image read-only

So far we set up a loopback file read-only iff ProtectSystem= and
ProtectHome= both where set to values that mark these dirs read-only.
Let's extend that and also be happy if /home and the root dir are marked
read-only by some other means.

Fixes: #14442
src/core/namespace.c