[Patch]: well_known_sids

Corinna Vinschen cygwin-patches@cygwin.com
Thu Feb 5 17:43:00 GMT 2004


On Feb  5 11:00, Pierre A. Humblet wrote:
> > > 2004-02-04  Pierre Humblet <pierre.humblet@ieee.org>
> > >
> > >       * security.h (SID): New macro.
> > >       (well_known_*_sid): Change type to cygpsid.
> > >       (cygsid::init): Delete declaration.
> > >       * sec_helper.cc (well_known_*_sid): Define as cygpsid and initialize.
> > >       (cygsid::init): Delete.
> > >       * dcrt0.cc (dll_crt0_0): Do not call cygsid::init.
> > >       * security.cc (get_user_local_groups): Change the second argument type to
> > > cygpsid.
> > 
> > What about this definition of SID instead:
> 
> Wonderful!
> I assume you will apply everything.

Done.  I was a bit surprised that the below patch works as expected,
though.  I want to give it a test first.

> 2004-02-05  Pierre Humblet <pierre.humblet@ieee.org>
> 
> 	* uinfo.cc (cygheap_user::init): Use sec_user_nih to build a
> 	security descriptor. Set both the process and the default DACLs.
> 	* fork.cc (fork_parent): Use sec_none_nih security attributes.
> 	* spawn.cc (spawn_guts): Ditto.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-patches mailing list