delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/07/01/17:21:43

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: Mon, 1 Jul 2002 17:21:39 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: Any ideas with xterm/xfree problem?
Message-ID: <20020701212139.GE25306@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <20020701204140 DOT GA25217 AT redhat DOT com> <3D20C1DA DOT 26509E01 AT ieee DOT org>
Mime-Version: 1.0
In-Reply-To: <3D20C1DA.26509E01@ieee.org>
User-Agent: Mutt/1.3.23.1i

On Mon, Jul 01, 2002 at 04:55:54PM -0400, Pierre A. Humblet wrote:
>Christopher Faylor wrote:
>> 
>> Is anyone reading the discussion in cygwin-xfree?  If so, I was
>> wondering if you had any idea what was causing the problem.
>
>I assume you mean  http://cygwin.com/ml/cygwin-xfree/2002-07/msg00009.html
>Is there any other info?
>
>> Out of curiousity, would adding something like:
>> 
>>   if (myself->uid == uid)
>>     return 0;
>> 
>> to the top of seteuid32 be "wrong"?  It seems like xterm is just
>> calling setuid with its own uid.  So, this test would short circuit
>> that.
>
>It used to be that way, but then a new token wasn't created when
>the gid changed and the uid didn't (in cygwin gid changes are not
>really effective until the next setuid).

That probably explains what's happening then.  Harold Hunt just posted an
strace.  Does this make sense?

cgf

  728 5428494 [main] xterm 1536 seteuid32: uid: 15136 myself->gid: 10513
  385 5428879 [main] xterm 1536 seteuid32: Process token not verified
 1198 5430077 [main] xterm 1536 set_process_privilege: Privilege SeCreateTokenPrivilege couldn't be assigned
  162 5430239 [main] xterm 1536 seterrno_from_win_error: /netrel/src/cygwin-snapshot-20020701-1/winsup/cygwin/sec_helper.cc:383 errno 1300
   82 5430321 [main] xterm 1536 geterrno_from_win_error: unknown windows error 1300, setting errno to 13
   78 5430399 [main] xterm 1536 set_process_privilege: -1 = set_process_privilege (SeCreateTokenPrivilege, 1)
   70 5430469 [main] xterm 1536 create_token: -1 = create_token ()
   68 5430537 [main] xterm 1536 seteuid32: create token failed, try subauthentication.
  983 5431520 [main] xterm 1536 set_process_privilege: Privilege SeTcbPrivilege couldn't be assigned
  144 5431664 [main] xterm 1536 seterrno_from_win_error: /netrel/src/cygwin-snapshot-20020701-1/winsup/cygwin/sec_helper.cc:383 errno 1300
   73 5431737 [main] xterm 1536 geterrno_from_win_error: unknown windows error 1300, setting errno to 13
   82 5431819 [main] xterm 1536 set_process_privilege: -1 = set_process_privilege (SeTcbPrivilege, 1)
   71 5431890 [main] xterm 1536 setuid32: real: 15136, effective: 15136

- Raw text -


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