summaryrefslogtreecommitdiff
path: root/src/test/test-namespace.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-01-20 21:57:21 +0100
committerLennart Poettering <lennart@poettering.net>2021-01-20 22:39:07 +0100
commit3bdc25a4cfbb8d58d81d10cf8d4362af12b90c80 (patch)
tree6aff6943dd05dea45937600644ea227e3787e768 /src/test/test-namespace.c
parent7504f599e1331c6e0ba1780a307178fd0a7f4d3a (diff)
downloadsystemd-3bdc25a4cfbb8d58d81d10cf8d4362af12b90c80.tar.gz
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/test/test-namespace.c')
-rw-r--r--src/test/test-namespace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-namespace.c b/src/test/test-namespace.c
index d92bcacfad..461dde5fa9 100644
--- a/src/test/test-namespace.c
+++ b/src/test/test-namespace.c
@@ -174,6 +174,7 @@ static void test_protect_kernel_logs(void) {
NULL,
NULL,
NULL,
+ NULL,
0,
NULL);
assert_se(r == 0);