summaryrefslogtreecommitdiffstats
path: root/src/test/test-ns.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-09-27 10:52:50 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-10-02 12:23:13 +0200
commitcd7f3702eb47c82a50bf74c2b7c15c2e4e1f5c79 (patch)
treec4701874b7623b07e0a810bde7f2e261e3871980 /src/test/test-ns.c
parentcore: Make private /dev read-only after populating it (diff)
downloadsystemd-cd7f3702eb47c82a50bf74c2b7c15c2e4e1f5c79.tar.xz
systemd-cd7f3702eb47c82a50bf74c2b7c15c2e4e1f5c79.zip
core: Use a subdirectory of /run/ for PrivateDevices=
When we're starting early boot services such as systemd-userdbd.service, /tmp might not yet be mounted, so let's use a directory in /run instead which is guaranteed to be available.
Diffstat (limited to 'src/test/test-ns.c')
-rw-r--r--src/test/test-ns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-ns.c b/src/test/test-ns.c
index 77afd2f6b9..eb3afed9e1 100644
--- a/src/test/test-ns.c
+++ b/src/test/test-ns.c
@@ -108,6 +108,7 @@ int main(int argc, char *argv[]) {
NULL,
NULL,
NULL,
+ RUNTIME_SCOPE_SYSTEM,
NULL);
if (r < 0) {
log_error_errno(r, "Failed to set up namespace: %m");