diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-01-20 21:57:21 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-01-20 22:39:07 +0100 |
commit | 3bdc25a4cfbb8d58d81d10cf8d4362af12b90c80 (patch) | |
tree | 6aff6943dd05dea45937600644ea227e3787e768 /src/core/execute.h | |
parent | Merge pull request #18325 from ssahani/more-cleanup (diff) | |
download | systemd-3bdc25a4cfbb8d58d81d10cf8d4362af12b90c80.tar.xz systemd-3bdc25a4cfbb8d58d81d10cf8d4362af12b90c80.zip |
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
Diffstat (limited to 'src/core/execute.h')
-rw-r--r-- | src/core/execute.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/execute.h b/src/core/execute.h index 2da4699df1..f8231ba773 100644 --- a/src/core/execute.h +++ b/src/core/execute.h @@ -384,6 +384,8 @@ struct ExecParameters { /* An fd that is closed by the execve(), and thus will result in EOF when the execve() is done */ int exec_fd; + + const char *notify_socket; }; #include "unit.h" |