]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: ReadWritePaths= and friends assume '+' prefix when BindPaths= or freinds are set
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 13 Oct 2017 12:22:25 +0000 (21:22 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2017 06:48:01 +0000 (15:48 +0900)
commitd18aff042273112b07e77bb56023b08c71a5f0b2
treed481d0c097b7efba6364669307c7f67949df2322
parent7bcef4efe673d2efd0540c33fe4348cd523cd2a0
core: ReadWritePaths= and friends assume '+' prefix when BindPaths= or freinds are set

When at least one of BindPaths=, BindReadOnlyPaths=, RootImage=,
RuntimeDirectory= or their friends are set, systemd prepares
a namespace under /run/systemd/unit-root. Thus, ReadWritePaths=
or their friends without '+' prefix is completely meaningless.
So, let's assume '+' prefix when one of them are set.

Fixes #7070 and #7080.
src/core/namespace.c