delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/27/14:27:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Reply-To: dpovey AT gmail DOT com
Date: Mon, 27 Sep 2010 11:27:06 -0700
Message-ID: <AANLkTikwzVbE1LKy-mx7YJe59WQGTPr5yqUi+viUbPty@mail.gmail.com>
Subject: Vista problem / heuristic status elevation / manifests
From: Daniel Povey <dpovey AT gmail DOT com>
To: cygwin AT cygwin DOT com
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

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?

Please cc me as I am not on the list.

Dan

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