[CRIU] [PATCH 0/2] tty: Open slave peers with destination uids

Cyrill Gorcunov gorcunov at gmail.com
Fri Aug 5 12:39:20 PDT 2016


On Fri, Aug 05, 2016 at 11:10:09AM -0700, Andrew Vagin wrote:
> On Fri, Aug 05, 2016 at 08:55:39PM +0300, Cyrill Gorcunov wrote:
> > Cyrill Gorcunov (2):
> >   restore: Open cores earlier
> >   tty: Set fsuid/fsgid when opening master peer
> 
> Pls, add a test for this problem in zdtm.

Mind to teach me how to create some arbitrary user in test?

> 
> Are you sure that you set uid-s from a correct userns?

Good question. On dump creds are fetched from inside
of a dumpee namespace (via parasite). On restore
we setup creds from inside restorer (ie already in
userns). The files get opened when userns is created
so uid's should be fine (if only I didn't miss something
obvious).


More information about the CRIU mailing list