Skip to content

Commit 4c8007f

Browse files
Merge pull request #1153 from hqhq/remove_cloneflag_check
Remove unnecessary cloneflag validation
2 parents e7abf30 + f520eab commit 4c8007f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

libcontainer/nsenter/nsexec.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,6 @@ void nsexec(void)
438438
/* Parse all of the netlink configuration. */
439439
nl_parse(pipenum, &config);
440440

441-
/* clone(2) flags are mandatory. */
442-
if (config.cloneflags == -1)
443-
bail("missing cloneflags");
444-
445441
/* Pipe so we can tell the child when we've finished setting up. */
446442
if (socketpair(AF_LOCAL, SOCK_STREAM, 0, syncpipe) < 0)
447443
bail("failed to setup sync pipe between parent and child");

0 commit comments

Comments
 (0)