Also note tool expectations of fork vs clone3
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
parent
ad6e5e1bae
commit
74ef5300ef
1 changed files with 2 additions and 0 deletions
|
|
@ -168,6 +168,8 @@ impl Command {
|
|||
|
||||
// Bypassing libc for `clone3` can make further libc calls unsafe,
|
||||
// so we use it sparingly for now. See #89522 for details.
|
||||
// Some tools (e.g. sandboxing tools) may also expect `fork`
|
||||
// rather than `clone3`.
|
||||
let want_clone3 = self.get_create_pidfd();
|
||||
|
||||
// If we fail to create a pidfd for any reason, this will
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue