Allow Linux Seccomp-BPF sandbox to start with multiple threads
Adds an |allow_threads_before_starting_sandbox| option to the Linux sandbox, which enables TSYNC if there are already multiple threads in the process. Also adds |check_for_open_directories| option to the Linux sandbox, which can be set to false to skip the check for open directories, which is only relevant if we are engaging the semantic layer of the sandbox, which we don't for the GPU sandbox. And if we start the GPU sandbox with multiple threads, and the above option will allow, then those other threads may have opened directories and we don't want that to be a failure. Based on jorgelo@'s CL: chromium-review.googlesource.com/c/chromium/src/+/1496305 Bug: 924759, 996455 Change-Id: Icee663f87d396f97ad7bb257c2709c15b06fab33 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1829866 Commit-Queue: Matthew Denton <mpdenton@chromium.org> Reviewed-by:Jorge Lucangeli Obes <jorgelo@chromium.org> Reviewed-by:
Robert Sesek <rsesek@chromium.org> Reviewed-by:
Julien Isorce <julien.isorce@chromium.org> Cr-Commit-Position: refs/heads/master@{#704348}
Showing
Please register or sign in to comment