delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/10/09:48:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.0 required=5.0 tests=AWL,BAYES_50
X-Spam-Check-By: sourceware.org
Reply-To: <llio AT testun DOT co DOT uk>
From: "Llio Humphreys" <llio_of AT testun DOT co DOT uk>
To: <moss AT cs DOT umass DOT edu>
Cc: <cygwin AT cygwin DOT com>
References: <009b01cb3572$08902780$19b07680$@co.uk> <4C5C1C67 DOT 8060508 AT cs DOT umass DOT edu> <20100807222339 DOT gwq7fz62o04g8w8s AT webmail DOT bangor DOT ac DOT uk> <4C5DED62 DOT 6030606 AT cs DOT umass DOT edu>
In-Reply-To: <4C5DED62.6030606@cs.umass.edu>
Subject: RE: Moses with Cygwin on Windows 7
Date: Tue, 10 Aug 2010 14:48:02 +0100
Message-ID: <009e01cb3892$a6d61620$f4824260$@co.uk>
MIME-Version: 1.0
X-Server: VPOP3 V2.0.0j - Registered
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

I don't know if this might interest others, but I have found a thread
explaining the UAC problem at 
http://social.answers.microsoft.com/Forums/en-US/vistasecurity/thread/67bfc4
b5-faff-4de4-be48-f395bf1c519d.  There is an unofficial third-party software
available from http://www.itknowledge24.com/ to create a white list so that
specific programs can be exempted from UAC prompts. We don't have a computer
with Windows 7 yet, so can't test it out, but I like the idea. 

Llio

-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of
Eliot Moss
Sent: 08 August 2010 00:34
To: cbsa01 AT bangor DOT ac DOT uk
Cc: llio AT testun DOT co DOT uk; cygwin AT cygwin DOT com
Subject: Re: Moses with Cygwin on Windows 7

On 8/7/2010 5:23 PM, cbsa01 AT bangor DOT ac DOT uk wrote:

> many thanks for your reply. On why we need cygwin: the language model we
use is IRSTLM. The native
> windows build of Moses does not currently use IRSTLM LMs.

I know next to nothing about Moses, so I'll just trust you on this one!

> I have been reading up a bit about debasing DLLs, and I gather from
> http://www.codeproject.com/KB/DLL/RebaseDll.aspx that the purpose is to
avoid either two or more
> DLLs using the same preferred base addresses, or the overheads of
relocation. However, on
>
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/bac7e300-f3df
-4087-9c4b-847880d625ad,
> it is suggested that from Vista onwards, it is better to leave this to the
operating systems's ASLR
> (Address space layout randomization) in order to help defeat a
?return-to-libc? attack. Do you agree
> with this? If it is still necessary to do a rebase, what does your script
do that rebaseall doesn't?

The problem is that the address space randomization interferes with how
cygwin support fork().  Suppose a parent process maps library A at
address X, but does not map library B at all.  Then suppose a forked
process is not yet using library A, and ends up mapping library B
at an address that overlaps X.  Then the child reaches a point where
it needs to use library A.  The implementation of cygwin requires
that if a parent and child use the same library, it must be at the
same address.  Therefore the child's mapping attempt will block.
That gives a sense of the scenario.  That may not be the exact
case, but it's like that. Basically, we need to guarantee that all
cygwin dlls map to different preferred places.

Yes, this defeats the OS attempt to defeat a security attack.

My script finds and rebases every dll file that cygwin 'find' can
locate, while rebaseall only does certain directories.  For me,
the difference lies in (at least) some perl-related dlls that are
not where rebaseall looks.

Another important thing is that the distance between preferred
locations needs to be a little bigger than the default for rebase,
on Vista (and Windows 7).  This is an obscure thing that Corinna
found a while back and took me quite a while to locate in old
email threads, but before I set that parameter, rebasing did not
work right for me and after adding that it did.  Maybe they have
changed the default by now, but I don't think so.

> Re UAC prompts: this does look annoying but corporate security regulations
may prevent us from
> turning it off completely. Is there some way to turn it off for individual
programs without using
> third-party software?

That lies outside my expertise.  I just turned it off.

Best wishes -- Eliot Moss

--
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


--
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