mirror of
https://github.com/moby/buildkit.git
synced 2026-06-30 19:57:39 +00:00
Fixes #5906, reverts #5980 Previously, due to lack of a sync mechanism, we'd end up with some race condition (occassionally) due to one deferred disableProcessPrivileges call happening before the rest complete. Fix this by introducing a mutex to coordinate the enabling and disabling of the privileges. Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>