mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-11 16:37:39 +00:00
rootless: fix fast join userns path
commitab88632835changed the path for the pause.pid file but didn't update the same path in the C code. This prevented Podman to take the fast path when the userns is already created and to join it without re-execing itself. Fix the path in the C code as well so we can join the rootless user+mount namespace without having to re-exec Podman. [NO TESTS NEEDED] Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> (cherry picked from commit11badab046)
This commit is contained in:
parent
a894a36962
commit
d46deca8c8
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ static void __attribute__((constructor)) init()
|
|||
uid_t uid;
|
||||
gid_t gid;
|
||||
char path[PATH_MAX];
|
||||
const char *const suffix = "/libpod/pause.pid";
|
||||
const char *const suffix = "/libpod/tmp/pause.pid";
|
||||
char *cwd = getcwd (NULL, 0);
|
||||
char uid_fmt[16];
|
||||
char gid_fmt[16];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue