delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/12/12:39:59

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 12 Feb 2010 18:39:37 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cron & Windows 7
Message-ID: <20100212173937.GX28659@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4B73894B DOT 4060306 AT tpg DOT com DOT au> <014d01caab1d$bed91720$7b00a8c0 AT wirelessworld DOT airvananet DOT com> <20100211134116 DOT GM28659 AT calimero DOT vinschen DOT de> <01a301caab2a$1c496a70$7b00a8c0 AT wirelessworld DOT airvananet DOT com> <20100211151748 DOT GN28659 AT calimero DOT vinschen DOT de> <01ef01caab42$ed7a31c0$7b00a8c0 AT wirelessworld DOT airvananet DOT com> <20100211185214 DOT GS28659 AT calimero DOT vinschen DOT de> <027b01caab6e$2dc88a30$7b00a8c0 AT wirelessworld DOT airvananet DOT com> <20100212100958 DOT GU28659 AT calimero DOT vinschen DOT de> <02f901caabf6$b4497d20$7b00a8c0 AT wirelessworld DOT airvananet DOT com>
MIME-Version: 1.0
In-Reply-To: <02f901caabf6$b4497d20$7b00a8c0@wirelessworld.airvananet.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Feb 12 10:19, Pierre A. Humblet wrote:
> From: "Corinna Vinschen"
> | I think it was always there, but I'm not sure.
> 
> It's hard to believe that the bug has always been there on foreign machines...
> A few other things:
> 
> 1) I had the feeling that we have already discussed this in the past.
> Take a look at
> http://www.cygwin.com/ml/cygwin-patches/2002-q4/msg00255.html
> (last line). Thanks to google :)

Cool!  Look at the date!  So I did it again wrong after you already
fixed it in 2002.  Oh well.  Btw, I tested this today and it seems the
patch is working.  I'll just change it to use a well_known_builtin_sid
rather than creating the SID on the fly.

> 2) About http://cygwin.com/ml/cygwin/2010-01/msg00334.html
> USERS is already always added to the token. It's done in get_token_group_sidlist.

Yes, but not in 1.7.1.  This is new since 2010-01-08.

> 3) There is another major bug: scripts don't get executed while impersonated.
> The problem is in access.
> 
> cron has setuid and tries to run sendmail ==> /bin/cronlog
>   502 3438682 [main] cron 4000 av::fixup: C:\Program Files\cygwin_1.7\bin\cronlog is possibly a 
> script
>  1832 3440514 [main] cron 4000 seterrno_from_win_error: 
> ../../../../src/winsup/cygwin/security.cc:766 windows erro$
>    61 3440575 [main] cron 4000 geterrno_from_win_error: windows error 6 == errno 9
>    21 3440596 [main] cron 4000 __set_errno: void seterrno_from_win_error(const char*, int, 
> DWORD):319 val 9
>    21 3440617 [main] cron 4000 check_file_access: flags 1, ret -1net helpmsg 6
> 
> net helpmsg 6
> The handle is invalid.
> 
> I will get to it but if you have an idea let me know.

I have no idea, sorry.  The Win32 error 6 is an invalid handle.  But the
token used here is always an impersonation token, just as AccessCheck
requires.  That's puzzeling.

> 4) Finally I noticed that perl doesn't run with the cygwin0.dll I built in cvs (last nite).
> Not sure if you see that too.

I see that, too.  But that's something for another thread, please.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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