delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/09/07/04:16:33

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4878GXOg3684160
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=s35pc0Wx
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4AA08385C6CD
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1725696991;
bh=EsMc9ggYTMQrtPFVMwRfRJCmuZYmuu7xfKF17z3cUk4=;
h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=s35pc0Wxe5M9+mNFz2MabV6DZgqw2xNjGHE6A358phs1mmtBg1DJw8YgXMdbhz6X4
tM1UnpYGVZ/y46BVgQuysi5v0shZdtaBghY1zWyINucS+6mtzHvDBlmpQ9fjj3lGLb
EJ8yW8MCwOICrUykiYaqWbwXCNo4qfS7ZGrtTDUk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C8EAD3858C48
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C8EAD3858C48
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725696970; cv=none;
b=NszFvu26fB5ZUy4KpxcUEC5nF6WQpTVq4YfHHBXP1i1UqcvyJ3xPBNEAsZkH6mcDcGgOlqTCI3PH2N+1hCAonxjG8RcgKLKs7YDPp1G8F+rWO2JHb/HQJCIhM8idXNhX6VeOmqHyBN56gDTWJtXWCVUmvZlAsqnSE0mBmlKU8eA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1725696970; c=relaxed/simple;
bh=rUMLXQQc3C7dHq8wiAPnfg2kZlLVwcGUwvZf22lha1k=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:From:To:Subject;
b=W4Br+/s0haEuov/bTpWZMs4E/5vbPqOsxEtiISRZQQ8uUC3VNRzQpBJVrkkxgU0+2Ztm8Rzz1e0RTbmy+a+6bez3ZROwiN1w3GDzH7MDXrvYqvZdfP8N/uk9nnePtqTdpQHhunZ/vM9noRlYz3FYg+99k4AW64rh/oLmr2Cbcuc=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1725696961; x=1726301761;
h=content-transfer-encoding:subject:to:content-language:from
:user-agent:mime-version:date:message-id:x-gm-message-state:from:to
:cc:subject:date:message-id:reply-to;
bh=rUMLXQQc3C7dHq8wiAPnfg2kZlLVwcGUwvZf22lha1k=;
b=EY3SydpbrcuEXl1CT2CGXW4340drxTChkaFI6n3NCfL79mT0D7mLhJ4w3EnRK44wSg
Tj4NxXZRdSyg/uIGDJfuqmJSVEJFLVR6TjDnXHu+cne4aSt/aQlouFRJONh/rGbgqu4F
NcvEPx1JPTT3Z4W3tsbf9XOymLfL/bPyVHvFW0Gsp3OEaRBk7NriCZ6A23rQsdD1jWKa
yTN0G1zYQDX+EWDQxcMmfEFrAdNObhR3XiRt8VM0huiV0fArsQFjXLZWZxfEzPymxiGf
lp0XHWi8IQztFSr/60yENjrCCStbBZmxz70GjyWMhpRqSyRk+g7ICVJ+r4zVcJEpZhfb
iUuA==
X-Gm-Message-State: AOJu0Yzxbm1l1O0jYvDdphn6sFu7VAwis6iJUAlJFPeZvzJ8tXzaxRxD
jW860vJkPXuJewjcqDkFbzPlKxkgceun4/XwfFIKafyDIGyNpZe+ZCl9eS1QOWil4g==
X-Google-Smtp-Source: AGHT+IGwvjyLSNOqkl6CpBRxvlv8lVbUGPBKW/CkCkNx3K4d6yYVzfvZN/p5xjpRjBFfhXHHHN/Sgg==
X-Received: by 2002:a05:6512:2202:b0:52e:9b15:1c60 with SMTP id
2adb3069b0e04-5365880a8e6mr2415878e87.48.1725696960397;
Sat, 07 Sep 2024 01:16:00 -0700 (PDT)
Message-ID: <147b7b20-05fd-4708-8f98-4628bf6ea958@gmail.com>
Date: Sat, 7 Sep 2024 11:15:57 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: cygwin AT cygwin DOT com
Subject: remount a subfolder on /cygdrive/c with notexec
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: ilya Basin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: ilya Basin <basinilya AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi. I want to speed-up access to Google Drive from Cygwin and I want to disable ReadFile when files are statted.

I did the following:

mkdir /cygnotexec
mount -obind,notexec "/cygdrive/c/ClusterStorage/gdrive/blahblah AT gmail DOT com" "/cygnotexec/basinilya AT gmail DOT com"
mount -obind,notexec "/cygdrive/c/ClusterStorage/gdrive/blahblah AT gmail DOT com" "/cygdrive/c/ClusterStorage/gdrive/basinilya AT gmail DOT com"

Never mind "C:\ClusterStorage\": it's a global antivirus exception maintained by my company. This is why I have configured Google Drive to not use g:\

So when I bind mount to a new location and do 'stat *' there, the SysInternals procmon shows no "ReadFile" calls, but if I repeat that in the original location it shows "ReadFile" for every file.

`mount` prints that "notexec" is enabled at both, but it's only effective in the new location.

Also, `df` sees that the mount is different and prints the available space for Google Drive correctly, but Cygwin doesn't treat it as NFS and doesn't imply "notexec". Should it?

$ mount
C:/ClusterStorage/gdrive/blahblah AT gmail DOT com on /cygdrive/c/ClusterStorage/gdrive/blahblah AT gmail DOT com type vfat (binary,notexec,user,bind)
C:/ClusterStorage/gdrive/blahblah AT gmail DOT com on /cygnotexec/blahblah AT gmail DOT com type vfat (binary,notexec,user,bind)





-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019