[CRIU] [PATCH 2/2 v2] criu: restore -- Wait for userns being prepared before moving into cgroups

Cyrill Gorcunov gorcunov at gmail.com
Thu Apr 21 05:36:50 PDT 2016


On Thu, Apr 21, 2016 at 03:27:35PM +0300, Pavel Emelyanov wrote:
> On 04/20/2016 07:13 PM, Cyrill Gorcunov wrote:
> > On Wed, Apr 20, 2016 at 07:09:07PM +0300, Cyrill Gorcunov wrote:
> >> When user namespace are stepping in we should wait for their preparation
> >> to complete before start using userns daemon (internally the kernel
> >> checks for uids and if uids are not set -EINVAL will be returned
> >> when usersn calls for sendmsg()).
> >>
> >> Thus use completion and wait for uid maps being written first.
> 
> We already have stages to divide restore process into steps. In particular,
> there's a separate stage with only root task inside (CR_STAGE_RESTORE_NS).

Andrew already posted shorter version. Thanks.


More information about the CRIU mailing list