This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Security patches
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- To: Corinna Vinschen <cygwin-patches at cygwin dot com>
- Date: Wed, 08 May 2002 09:57:32 -0400
- Subject: Re: Security patches
- References: <3CB58D37.52F084E@ieee.org> <3.0.5.32.20020309192813.007fcb70@pop.ne.mediaone.net> <20020314133309.Q29574@cygbert.vinschen.de> <3C90B0D7.EB06F222@ieee.org> <3CB58D37.52F084E@ieee.org> <3.0.5.32.20020507223050.007b2550@mail.attbi.com> <20020508131529.D9238@cygbert.vinschen.de>
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.