[Devel] [PATCH criu v7-u5 1/2] mount: restore_task_mnt_ns - Lookup for mount namespace conditionally

Cyrill Gorcunov gorcunov at gmail.com
Tue Jul 25 21:26:23 MSK 2017


On Tue, Jul 25, 2017 at 10:26:17AM -0700, Andrey Vagin wrote:
> 
> ^^^ It is incorrect. We want to check that a parent task lives in this
> same mount namespace.
> 
> The code has to be something like this:
> 
> 			if (next->ids == NULL) /* helper or zombie */
> 				break;
> 
> 			if (id == next->ids->mnt_ns_id)
> 				return 0;
> 
> Or it may be better to set ids for such tasks.

v2 has been merged, which addressed this problem.


More information about the Devel mailing list