This is the mail archive of the cygwin-developers@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: Alloc_sd() fragile?


On Tue, Mar 05, 2002 at 09:12:00PM +1100, Robert Collins wrote:
> 
> 
> > -----Original Message-----
> > From: Corinna Vinschen [mailto:vinschen@redhat.com] 
> > Sent: Tuesday, March 05, 2002 8:55 PM
> > To: cygwin-developers@cygwin.com
> > Subject: Re: Alloc_sd() fragile?
> > 
> > 
> > On Tue, Mar 05, 2002 at 09:04:29AM +1100, Robert Collins wrote:
> > >  2182 1445858 [main] shmctl_rmid 1568 alloc_sd: 
> > > GetSecurityDescriptorOwner Win32 error 1305  2088 1447946 [main] 
> > > shmctl_rmid 1568 alloc_sd: GetSecurityDescriptorGroup Win32 
> > error 1305
> > 
> > Error 1305, "The revision level is unknown.".  It's very 
> > likely that the SD is corrupted at that point.
> 
> Any ideas about what could cause that? I'm trying to create a new sd....

Just guessing.  One parameter to alloc_sd is a PSECURITY_DESCRIPTOR
called `sd_ret'.  This SD must be initialized since it's used as in/out
parameter.  Take a look into set_security_attribute() and especially
into set_nt_attribute().  You will see what I mean.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                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]