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

Cyrill Gorcunov gorcunov at gmail.com
Fri Aug 5 13:53:50 PDT 2016


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.


More information about the CRIU mailing list