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

Pavel Emelyanov xemul at virtuozzo.com
Thu Apr 21 05:27:35 PDT 2016


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).

-- Pavel



More information about the CRIU mailing list