This is the mail archive of the cygwin-patches 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: [PATCH]: cygwin_internal


The situation is that exim has the concept that some groups
are privileged and can have write access to the configuration file.
They are normally initialized to hard values set at compile time.

The Cygwin port of exim fakes things up so that the gid of Admins
(obtained from cygwin_internal) is put in the list of exim's privileged
groups.
The  problem is that the gid obtained by cygwin_internal (from the
Admins sid) may not match the gid reported by stat, which is obtained by
cygpsid::get_id () from the same Admins sid.

Pierre


----- Original Message ----- 
From: "Pierre A. Humblet" <Pierre.Humblet@ieee.org>
To: <cygwin-patches@cygwin.com>
Sent: Friday, July 01, 2005 9:36 AM
Subject: Re: [PATCH]: cygwin_internal


> The situation is that exim has the concept that some groups
> are privileged and can have write access to the configuration file.
> They are normally initialized to hard values set at compile time.
>
> The Cygwin port of exim fakes things up so that the gid of Admins
> (obtained from cygwin_internal) is put in the list of exim's privileged
> groups.
> The  problem is that the gid obtained by cygwin_internal (from the
> Admins sid) may not match the gid reported by stat, which is obtained by
> cygpsid::get_id () from the same Admins sid.
>
> Pierre
>
> ----- Original Message ----- 
> From: "Corinna Vinschen" <corinna-cygwin@cygwin.com>
> To: <cygwin-patches@cygwin.com>
> Sent: Friday, July 01, 2005 4:42 AM
> Subject: Re: [PATCH]: cygwin_internal
>
>
> > On Jul  1 00:52, Pierre A. Humblet wrote:
> > >
> > > The patch below uses cygpsid::get_id to implement CW_GET_UID_FROM_SID
> > > and CW_GET_GID_FROM_SID in cygwin_internal. Thus the sid is first
> > > compared to the user (or primary group) sid, before looking up
> > > the passwd (or group) file.
> > >
> > > This can make a difference when a sid appears multiple times in the
> > > passwd or group file, e.g. when one has both 544 and 0.
> > > This difference can cause exim (and perhaps others) to fail (it did
> > > happen to me).
> >
> > Can you please describe the exact situation?  I think I see it, but I
> > want to be really sure.  I'm not keen on accidentally breaking
Cygserver's
> > authentication routine.
> >
> >
> > Corinna
> >
> > -- 
> > Corinna Vinschen                  Please, send mails regarding Cygwin to
> > Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
> > Red Hat, Inc.
>



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