X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 28 Sep 2010 10:14:10 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Vista problem / heuristic status elevation / manifests
Message-ID: <20100928081410.GB6694@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <AANLkTikwzVbE1LKy-mx7YJe59WQGTPr5yqUi+viUbPty@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <AANLkTikwzVbE1LKy-mx7YJe59WQGTPr5yqUi+viUbPty@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Sep 27 11:27, Daniel Povey wrote:
> When running cygwin on Windows 7, if you compile programs with names
> that include "update" and "install" and other keywords, they won't
> execute.  It seems to relate to heuristic privelege elevation:
> 
> http://blogs.msdn.com/b/onoj/archive/2007/04/20/windows-vista-uac-and-installer-detection.aspx
> 
> A minimal example is:
> 
> echo "int main(){ } " >  tmp.cc; gcc tmp.cc -o update; ./update
> 
> [will get some kind of access denied message]
> 
> The way to fix this seems to be to embed a manifest, but gcc is not
> doing this by default.  Does anyone know if it's possible to patch
> Cygwin to get around this issue, or if there is a user-level fix or
> workaround?

This is not a Cygwin problem, but a UAC "feature".  Cygwin is a user
space DLL.  We can't do what the OS doesn't allow.  The solutions and
workarounds are not diferent from other products.  You either distribute
the manifest file alongside your executable, or you switch off the
feature in the "Local Security Policy" MMC-Snapin locally.


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

