Merge pull request #1153 from hqhq/remove_cloneflag_check

Remove unnecessary cloneflag validation
This commit is contained in:
Michael Crosby 2016-10-28 16:00:52 -07:00 committed by GitHub
commit 4c8007f34a
1 changed files with 0 additions and 4 deletions

View File

@ -438,10 +438,6 @@ void nsexec(void)
/* Parse all of the netlink configuration. */
nl_parse(pipenum, &config);
/* clone(2) flags are mandatory. */
if (config.cloneflags == -1)
bail("missing cloneflags");
/* Pipe so we can tell the child when we've finished setting up. */
if (socketpair(AF_LOCAL, SOCK_STREAM, 0, syncpipe) < 0)
bail("failed to setup sync pipe between parent and child");