mirror of
https://github.com/containers/podman.git
synced 2025-06-26 12:56:45 +08:00
Merge pull request #12326 from giuseppe/catatonit-rootless
rootless: use catatonit to maintain user+mnt namespace
This commit is contained in:
@ -106,6 +106,11 @@ do_pause ()
|
|||||||
for (i = 0; sig[i]; i++)
|
for (i = 0; sig[i]; i++)
|
||||||
sigaction (sig[i], &act, NULL);
|
sigaction (sig[i], &act, NULL);
|
||||||
|
|
||||||
|
/* Attempt to execv catatonit to keep the pause process alive. */
|
||||||
|
execl ("/usr/libexec/podman/catatonit", "catatonit", "-P", NULL);
|
||||||
|
execl ("/usr/bin/catatonit", "catatonit", "-P", NULL);
|
||||||
|
/* and if the catatonit executable could not be found, fallback here... */
|
||||||
|
|
||||||
prctl (PR_SET_NAME, "podman pause", NULL, NULL, NULL);
|
prctl (PR_SET_NAME, "podman pause", NULL, NULL, NULL);
|
||||||
while (1)
|
while (1)
|
||||||
pause ();
|
pause ();
|
||||||
|
Reference in New Issue
Block a user