DescriptionMove ForkWithFlags from sandbox/ to base/ and plug it into LaunchProcess.
ForkWithFlags is a wrapper around the clone syscall that uses the libc clone
wrapper, and thus updates the libc's pid cache if it has one (using sys_clone
directly does not update the pid cache, so getpid may return an incorrect
result in the child). This exposes the ability to set clone flags, which is
needed to use Linux namespaces.
BUG=312380
Committed: https://crrev.com/f1eb9ccb53367a38340b05caa74769c7b492ad73
Cr-Commit-Position: refs/heads/master@{#311356}
Patch Set 1 #Patch Set 2 : Correct namespaces support check, move over ForkWithFlags test. #
Total comments: 2
Patch Set 3 : Use RAW_CHECK in the child. #
Total comments: 1
Messages
Total messages: 17 (4 generated)
|