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: Security patches


Corinna Vinschen wrote:
> 
> We should get that SID easily:
> 
>   cygsid sid;
>   sid.getfrompw (getpwuid (cygheap->user.orig_uid));

That's a nice looking statement but behind it we are
searching the whole passwd file (*)
Also it seems that the rest of Cygwin gets SIDs directly from 
Windows and not from the less reliable passwd (which may not 
exist), whenever practical.
Do you wish to use this method anyway or do you have another
idea?

Pierre

(*) search_for() could be optimized to cache the most likely 
uid's.


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