[CRIU] [PATCH 2/2] tty: Set fsuid/fsgid when opening master peer

Cyrill Gorcunov gorcunov at gmail.com
Sat Aug 6 00:03:35 PDT 2016


On Fri, Aug 05, 2016 at 02:00:58PM -0700, Andrei Vagin wrote:
> On Fri, Aug 5, 2016 at 1:53 PM, Cyrill Gorcunov <gorcunov at gmail.com> wrote:
> > On Fri, Aug 05, 2016 at 01:32:13PM -0700, Andrew Vagin wrote:
> > ...
> >> > +   old_fsuid = setfsuid(ce->fsuid);
> >> > +   old_fsgid = setfsgid(ce->fsgid);
> >>
> >> Actually a slave end can have other uid, gid then a process where it is
> >> opened.
> >>
> >> You need to save uid and gid for it on dump and restore them back with
> >> help of chown().
> >
> > This won't be a traditional configuration but still quite possible.
> > So yes. Thanks for feedback. Pavel, drop the patches. I'll create
> > new ones when I get spare time for.
> 
> It is the "traditional" configuration ;). Look at tty owners on my laptop:

Indeed ;)


More information about the CRIU mailing list