delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/09/04:43:23

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=qz
BkS3kxT08jdg+pOpw6Aw7X0e4j0dGpDwpR4RZjzeb5nJ1tYrk0VEVR0lMj83qfXi
a6q+Gc+P0MK052WBYZPtGaVT6p3/tv5Y7T+vmlH6HV6ZxaGsL/WuUaBk68rKMGef
wnktMfbkYpTEae5h4QCRZKUVvVe1Q//TgLS7CNds4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=8ym3DpHB
FATIlD6yGW+JT0zy6N0=; b=TLy7bb7jx+jNzpUnzGA/lWwUkAGN4laEekhWH4DY
z7oZmMb3u39IhX1vxp/14f+u40uhZKQ7L//de1+xFO1gut+OnxnihDlvxb/fVAgm
nbb9Q0dZLsPq7EktgEuuh2JDM9PwPIu7J3f7nkaIT1QkG6/TGiQH0U4htbEmgYdG
uRk=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-lf0-f52.google.com
MIME-Version: 1.0
X-Received: by 10.25.169.212 with SMTP id s203mr1466591lfe.134.1449654181172; Wed, 09 Dec 2015 01:43:01 -0800 (PST)
In-Reply-To: <CAGHpTB+cGrO6xrsaR=LoUdTAvmiHWJYty9=+ErJ2aW-FDpbbqA@mail.gmail.com>
References: <CAGHpTBKEWFa8M1KN6_vqrBT6WOjVpmOCUqP-LHBYK=FApg2fJg AT mail DOT gmail DOT com> <CAGHpTB+O-Z3Mir-4ZV7Wmh3dqo=rqfy+-CAW_KCE2hQdCjhB5w AT mail DOT gmail DOT com> <CAGHpTB+cGrO6xrsaR=LoUdTAvmiHWJYty9=+ErJ2aW-FDpbbqA AT mail DOT gmail DOT com>
Date: Wed, 9 Dec 2015 11:43:01 +0200
Message-ID: <CAGHpTBJeR9H7YkW=_U7U287vuSoHco6X4Z=iEBLRBo4dRRy58Q@mail.gmail.com>
Subject: Re: FindFirstFile fails for some network directories
From: Orgad Shaneh <orgads AT gmail DOT com>
To: cygwin AT cygwin DOT com

On Wed, Aug 19, 2015 at 8:28 AM, Orgad Shaneh <orgads AT gmail DOT com> wrote:
>
> On Wed, Aug 19, 2015 at 8:46 AM, Orgad Shaneh <orgads AT gmail DOT com> wrote:
> > Working capture: https://gist.github.com/orgads/d2681881668afb9cb08f
> > Failing capture: https://gist.github.com/orgads/4f0ea2b26cfd64f4353d
>
> I just found another SMB1 linux server, which does work[1].
>
> It first has a "NT Create AndX" request for path \, which succeeds.
> Then it issues Trans2 FIND_FIRST2 request for the real path (\a).
>
> This issue might be related to the Archive bit which is set on aclnas01.
>
> - Orgad
>
> [1] https://gist.github.com/orgads/e76a00c2cc0fc8a43d95

Hi,

After investigation, I found that the root cause for this problem is
set_cygwin_privileges, which sets SE_RESTORE_PRIVILEGE and
SE_BACKUP_PRIVILEGE for the process during initialization.

Commenting out these 2 lines solves the problem for me.

Can you tell why are they needed at all? There is a comment there:

    Allow to access all files, independent of their ACL settings.

What does it mean?

- Orgad

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