[Fwd: shm]

Corinna Vinschen corinna@vinschen.de
Tue Jun 1 06:40:00 GMT 1999


I forward this, because I noticed this problem only when I read
Suhaib's mail. IMHO, the `mmap' problem should be solved, too,
before releasing B21. As minimal change, the call to `CreateFileMapping'
should get a `sec_all' security descriptor instead of `sec_none'.

Corinna Vinschen wrote:
> 
> Horak Daniel wrote:
> >
> > > Has anyone a SVR4 style shared memmory for Cygwin
> > > (shmget/shmctl/shmat)?  I need it for X-server
> > > for Cygwin Development.
> > >
> > > The ipc available for Cygwin from France (do not remember the URL) has
> > > problems.  Its headers gives the problems.
> >
> > I am using the cygipc library v1.03
> > ( http://www.multione.capgemini.fr/tools/pack_ipc/ ) succesfully in the port
> > of PostgreSQL database system. It required only to comment CURRENT_TIME in
> > some header.
> >
> >                         Dan
> 
> Caution!
> 
> The security settings of this package are not sufficent for multi user
> systems! The security descriptor, that is given to `CreateSemaphore'
> is a default descriptor. The result is, that only the creator/owner
> of the semaphore may use it.
> 
> Moreover, the cygwin call `mmap' which is used in the package, is not
> implemented with sufficent correspondence between the given permissions
> and the resulting security descriptor in the windows call
> `CreateFileMapping'. It uses the default descriptor, too :(
> 
> Regards,
> Corinna

-- 
new mail address:
mailto:corinna@vinschen.de



More information about the Cygwin-developers mailing list