(Obligatory "I am not a Chromium developer" here.)
AFAIK it's not really possible to safely use the namespace sandbox at
all with multiple threads, for various reasons:
- `unshare(CLONE_NEWUSER)`, used to enter the namespace sandbox, fails
with multiple threads.
- `capset()`, used by the namespace sandbox to drop capabilities, only
drops them for the current thread (attempting to work around it for
multiple threads is inherently racy without some awful workarounds)
- The BPF sandbox seems to generally assume a single thread, but I'm
not aware of the reasons why
Your best bet would just be to try and spawn any threads *after* the
sandbox is entered, or kill any other threads if/when they're no
longer needed.
> --
> --
> Chromium Developers mailing list:
chromi...@chromium.org
> View archives, change email options, or unsubscribe:
>
http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
chromium-dev...@chromium.org.
> To view this discussion on the web visit
https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/da32a147-3223-49ab-8efc-1babf5f174cdn%40chromium.org.