mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
rootless: child exits immediately on userns errors
if the parent process failed to create the user namespace, let the child exit immediately. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -860,7 +860,7 @@ reexec_in_user_namespace (int ready, char *pause_pid_file_path, char *file_to_re
|
||||
fprintf (stderr, "cannot read from sync pipe: %s\n", strerror (errno));
|
||||
_exit (EXIT_FAILURE);
|
||||
}
|
||||
if (b != '0')
|
||||
if (ret != 1 || b != '0')
|
||||
_exit (EXIT_FAILURE);
|
||||
|
||||
if (syscall_setresgid (0, 0, 0) < 0)
|
||||
|
Reference in New Issue
Block a user