diff options
-rw-r--r-- | src/core/namespace.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/namespace.c b/src/core/namespace.c index 16540043ab..1f987a4b9d 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -143,7 +143,7 @@ static int mount_dev(BindMount *m) { "/dev/tty\0"; char temporary_mount[] = "/tmp/namespace-dev-XXXXXX"; - const char *d, *dev = NULL, *devpts = NULL, *devshm = NULL, *devkdbus = NULL, *devhugepages = NULL, *devmqueue = NULL, *devlog = NULL; + const char *d, *dev = NULL, *devpts = NULL, *devshm = NULL, *devkdbus = NULL, *devhugepages = NULL, *devmqueue = NULL, *devlog = NULL, *devptmx = NULL; _cleanup_umask_ mode_t u; int r; @@ -168,6 +168,9 @@ static int mount_dev(BindMount *m) { goto fail; } + devptmx = strappenda(temporary_mount, "/dev/ptmx"); + symlink("pts/ptmx", devptmx); + devshm = strappenda(temporary_mount, "/dev/shm"); mkdir(devshm, 01777); r = mount("/dev/shm", devshm, NULL, MS_BIND, NULL); |