From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18426 invoked by alias); 2 Apr 2014 17:20:38 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 18415 invoked by uid 89); 2 Apr 2014 17:20:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout20.012.net.il Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Apr 2014 17:20:35 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N3E00600YOMM600@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Wed, 02 Apr 2014 20:20:33 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N3E0062TYU88L80@a-mtaout20.012.net.il>; Wed, 02 Apr 2014 20:20:33 +0300 (IDT) Date: Wed, 02 Apr 2014 17:20:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Return argv0-symlink.exp early if gdb can't load symlink In-reply-to: <533C40A7.1040502@redhat.com> To: Pedro Alves Cc: yao@codesourcery.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83ha6bbqc3.fsf@gnu.org> References: <1396428218-31822-1-git-send-email-yao@codesourcery.com> <533BD0D5.4000408@codesourcery.com> <83txabbtdl.fsf@gnu.org> <533C40A7.1040502@redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00034.txt.bz2 > Date: Wed, 02 Apr 2014 17:53:59 +0100 > From: Pedro Alves > CC: Yao Qi , gdb-patches@sourceware.org > > > Creating native symlinks generally require elevation on Windows. So > > unless Cygwin somehow managed to work around this (I didn't try, so I > > don't know), you will get UAC prompts when you try creating symlinks. > > > > Therefore, I don't recommend to go there. > > > > I suspect it's the specific tool (mklink, perhaps?) that tries to create > symlinks that somehow runs a UAC prompt. mklink just invokes the CreateSymbolicLink API. And if you need more data points, I see the same behavior in Emacs, when I invoke the make-symbolic-link function on Windows. > On the permissions, according to: > > http://cygwin.com/ml/cygwin/2011-04/msg00088.html > > > They don't require administrator privilege per se: just SeCreateSymbolicLinkPrivilege, > > which can be granted to normal user accounts via local security policy. The easiest way to > > grant SeCreateSymbolicLinkPrivilege is to start gpedit.msc, go down to > > "Windows Settings"->"Security Settings"->"Local Policies"->"User Rights Assignment", > > then find "Create symbolic links" and add whatever users and groups you want[1]. That is correct, and matches my experience, but the problem is that most Windows users are local admins on their machines, in which case adding SeCreateSymbolicLinkPrivilege doesn't work, because members of the Administrators group are treated specially when privileges are concerned. Thus the "normal user account" in the above is really a crucial part. > Assuming not having the permissions doesn't cause prompts resulting in > testsuite run hangs, I think it's OK. If the user doesn't have the > permissions, the symlink fails to be created and the tests require symlinks > end up UNRESOLVED or UNTESTED. If you are OK with that, so am I.