[CRIU] [PATCHv2 3/4] restore: Create temp proc in /tmp
Radostin Stoyanov
rstoyanov1 at gmail.com
Sun Nov 17 10:28:36 MSK 2019
When restoring a container with user namespace, CRIU fails to create
a temporary directory for proc. The is because the unprivileged user
that has been just restored does not have permissions to access the
working directory used by CRIU.
Resolves #828
Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
criu/cr-restore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index 953f28e45..fad1b3879 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -1589,7 +1589,7 @@ static void restore_pgid(void)
static int mount_proc(void)
{
int fd, ret;
- char proc_mountpoint[] = "crtools-proc.XXXXXX";
+ char proc_mountpoint[] = "/tmp/crtools-proc.XXXXXX";
if (root_ns_mask == 0)
fd = ret = open("/proc", O_DIRECTORY);
--
2.21.0
More information about the CRIU
mailing list