From 03cfe0d51499e86b1573d121337594719d9f2012 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 21 May 2015 16:30:58 +0200 Subject: nspawn: finish user namespace support --- src/core/mount-setup.c | 2 +- src/core/namespace.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c index 23fb0a1e38..ba96741e95 100644 --- a/src/core/mount-setup.c +++ b/src/core/mount-setup.c @@ -373,7 +373,7 @@ int mount_setup(bool loaded_policy) { /* Create a few default symlinks, which are normally created * by udevd, but some scripts might need them before we start * udevd. */ - dev_setup(NULL); + dev_setup(NULL, UID_INVALID, GID_INVALID); /* Mark the root directory as shared in regards to mount * propagation. The kernel defaults to "private", but we think diff --git a/src/core/namespace.c b/src/core/namespace.c index c0c64fd706..7d0b7e7e84 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -224,7 +224,7 @@ static int mount_dev(BindMount *m) { } } - dev_setup(temporary_mount); + dev_setup(temporary_mount, UID_INVALID, GID_INVALID); /* Create the /dev directory if missing. It is more likely to be * missing when the service is started with RootDirectory. This is -- cgit v1.2.3-54-g00ecf