Skip to content

Commit

Permalink
Merge pull request #1201 from giuseppe/fix-segfault-rootless
Browse files Browse the repository at this point in the history
rootless: do not segfault if the parent already died
  • Loading branch information
rhatdan authored Aug 2, 2018
2 parents d55445d + c7b6403 commit 9f2da6f
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 9f2da6f

Please sign in to comment.