This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: exec after seteuid


Corinna Vinschen wrote:
> 
> On Mon, Jun 09, 2003 at 04:51:19PM +0200, Corinna Vinschen wrote:
> > Oh boy :-(  So I have to upload another version of login which drops the
> > call to setegid() entirely.  Switching back to uid 18 the just reverts
> > to self and the last call to setgid/setuid uses the logon token.
> 
> Or better, call setegid() twice.  

Make that "three times", or 2 x setegid() + 1 x setgid()
That looks more Unix-like, but as you said it's mostly fake.

That's what the login.c I sent yesterday was doing, btw.

Pierre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]