[CRIU] [PATCH 1/2] files: restore cwd after switching mntns
Pavel Emelyanov
xemul at parallels.com
Fri Nov 20 10:21:17 PST 2015
On 11/20/2015 04:34 PM, Andrew Vagin wrote:
> On Thu, Nov 19, 2015 at 04:50:54PM +0300, Pavel Emelyanov wrote:
>> On 11/19/2015 03:37 PM, Andrew Vagin wrote:
>>> On Thu, Nov 19, 2015 at 03:23:30PM +0300, Pavel Emelyanov wrote:
>>>> On 11/18/2015 02:04 PM, Andrey Vagin wrote:
>>>>> From: Andrew Vagin <avagin at virtuozzo.com>
>>>>
>>>> Comment required.
>>>
>>> Here is a problem that restore_ns() restores a mount namespace, but
>>> doesn't restore cwd, so cwd will be an root of the restired mntns.
>>>
>>> CRIU doesn't expect this, so we will see errors. Fro example, Stas
>>> reports an error that criu can't umount an roots yard.
>>
>> Nice. Does the same problem exists for the root dir? Do we want to
>> fix it too?
>
> Yes, it's. It's another issue and we need to restore it in all places.
>
> we restore cwd in all places except this one.
OK, applied.
More information about the CRIU
mailing list