restore: Wait for userns being prepared before moving into cgroups (v3)
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()). v2: change stages correctly v3: Wait prepare_userns() before making any calls to usernsd() Cc: Cyrill Gorcunov <gorcunov@gmail.com> Acked-by:Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
Showing
Please
register
or
sign in
to comment