[CRIU] [PATCH 1/2] test: Rework the ext mount plugin test

Pavel Emelyanov xemul at parallels.com
Mon Apr 13 02:20:56 PDT 2015


On 04/13/2015 11:34 AM, Andrew Vagin wrote:
> On Thu, Apr 09, 2015 at 06:28:20PM +0300, Pavel Emelyanov wrote:
>> The existing set of shell scripts do hard-to-debug things and mess
>> with the root filesystem. We can make it better.
>>
>> First, not to play with the system / the process that will be run in
>> a new mount namespace is statically compiled .c file. And this "init"
>> does a very simple thing -- waits for SIGTERM and check that the
>> given filepath contains the given string.
>>
>> Second, the namespace's root will be some subdir, instead of system
>> / bind-mount-ed into a subdir. This makes it easier to keep things
>> together and makes 100% sure the external bind mount cannot be
>> accessed by custom path.
> 
> Why can't we use zdtm framework for this test?

It doesn't support custom C/R option (only statically written into .opts).
So once we do it, we can move these tests into zdtm.



More information about the CRIU mailing list