Skip to content

Commit

Permalink
rootless: do not segfault if the parent already died
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Aug 2, 2018
1 parent a8ae7ea commit bcf347c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/rootless/rootless_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ reexec_in_user_namespace(int ready)
return pid;

argv = get_cmd_line_args (ppid);
if (argv == NULL)
_exit (EXIT_FAILURE);

setenv ("_LIBPOD_USERNS_CONFIGURED", "init", 1);
setenv ("_LIBPOD_ROOTLESS_UID", uid, 1);
Expand Down

0 comments on commit bcf347c

Please sign in to comment.