Mail Archives: cygwin-developers/2002/07/01/17:21:43
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 -