delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/03/05/05:39:28

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Date: Tue, 5 Mar 2002 11:39:14 +0100
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: Alloc_sd() fragile?
Message-ID: <20020305113914.S13590@cygbert.vinschen.de>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <FC169E059D1A0442A04C40F86D9BA76008AB19 AT itdomain003 DOT itdomain DOT net DOT au>
Mime-Version: 1.0
In-Reply-To: <FC169E059D1A0442A04C40F86D9BA76008AB19@itdomain003.itdomain.net.au>
User-Agent: Mutt/1.3.22.1i

On Tue, Mar 05, 2002 at 09:12:00PM +1100, Robert Collins wrote:
> 
> 
> > -----Original Message-----
> > From: Corinna Vinschen [mailto:vinschen AT redhat DOT com] 
> > Sent: Tuesday, March 05, 2002 8:55 PM
> > To: cygwin-developers AT cygwin DOT 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 AT cygwin DOT com
Red Hat, Inc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019