]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: make NotifyAccess= in combination with RootDirectory=/RootImage= work
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Jan 2021 20:57:21 +0000 (21:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Jan 2021 21:39:07 +0000 (22:39 +0100)
commit3bdc25a4cfbb8d58d81d10cf8d4362af12b90c80
tree6aff6943dd05dea45937600644ea227e3787e768
parent7504f599e1331c6e0ba1780a307178fd0a7f4d3a
core: make NotifyAccess= in combination with RootDirectory=/RootImage= work

Previously if people enabled RootDirectory=/RootImage= and NotifyAccess=
together, things wouldn't work, they'd have to explicitly add
BindReadOnlyPaths=/run/systemd/notify too.

Let's make this implicit. Since both options are opt-in, if people use
them together it would be pointless not also defining the
BindReadOnlyPaths= entry, in which case we can just do it automatically.

See: #18051
src/core/execute.c
src/core/execute.h
src/core/namespace.c
src/core/namespace.h
src/core/service.c
src/test/test-namespace.c
src/test/test-ns.c