delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/23/13:47:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 23 Jan 2002 19:41:26 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
Cc: cygwin <cygwin AT cygwin DOT com>
Subject: Re: security.cc: bug report, question and suggestion
Message-ID: <20020123194126.H11608@cygbert.vinschen.de>
Mail-Followup-To: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>,
cygwin <cygwin AT cygwin DOT com>
References: <3C4EFF65 DOT FF7BA4DE AT ieee DOT org>
Mime-Version: 1.0
In-Reply-To: <3C4EFF65.FF7BA4DE@ieee.org>
User-Agent: Mutt/1.3.22.1i

On Wed, Jan 23, 2002 at 01:22:29PM -0500, Pierre A. Humblet wrote:
> OK, but can you give suggestions about how to debug processes 
> started under cygrunsrv? I tried to have cygrunsrv start a shell
> and put strace in the shell script. However the problem does not 
> occur with this setup, only when the program is started directly.
> Is there a way to produce Cygwin internal debug output without strace?

Have a look into `how-to-debug-cygwin.txt' in the cygwin source
directory.  You can use the CYGWIN_SLEEP technique, for instance.

> I saw that you put my diff in security.cc on cvs. As I wrote,
> it doesn't work [although it should :-( ], so it's currently
> wasting cycles.

Huh?  I didn't.  The only change was to drop setting the primary
group in setegid() as per our discussion.

However, I've just checked in a change which should create a useful
DACL for the primary token created by DuplicateTokenEx() in the
create_token() function.  It uses the function `sec_user()' which I
once introduced to set security attributes for CreateProcess calls,
etc.  Could you test if it now behaves as you'd expect?

TIA,
Corinna

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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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