delorie.com/archives/browse.cgi | search |
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:message-id:date:from:mime-version:to:subject | |
:content-type; q=dns; s=default; b=KPwYteW1msyd7f9CrtYiT+G0hbHaw | |
Vy/SPII0mDNLp4cMsY4es+CKdlQa0kK8grGfkImTfa70YpbiJqlPPUU+K0yt1sqR | |
UVez423wlQPMvW8OPadekSq1CmF14RttAhBY79vuR+sC+aNV011dJ0Y2dfZPqzE3 | |
PeE9fioujvaNBU= | |
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:message-id:date:from:mime-version:to:subject | |
:content-type; s=default; bh=cRlte4dm0Ko5fEx/P10VKF/D2zQ=; b=Yyi | |
Wj0M6NdkJE00trMiDyMjgIYmMkrA+KiWbBReblyRgbO8yT83WwKJzge1YAs9XS6Q | |
PmlDSF3oTfXWEz0bQGs6ywLSva/NZ8UEg8+dHhRQRDYtge7GnG8NLqaFjSXMMVic | |
uRb0bzLoFFwKfln9GFTgeel8oklDeIa2lbSJcj60= | |
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-Spam-SWARE-Status: | No, score=-15.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=trusted, H*F:U*cygwin, fwd, H*r:192.168.3 |
X-HELO: | Ishtar.sc.tlinx.org |
Message-ID: | <5D2E7744.1090404@tlinx.org> |
Date: | Tue, 16 Jul 2019 18:17:56 -0700 |
From: | L A Walsh <cygwin AT tlinx DOT org> |
User-Agent: | Thunderbird |
MIME-Version: | 1.0 |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | Fwd: [SMB3][PATCH] add mount option to allow retrieving POSIX mode from special ACE |
X-IsSubscribed: | yes |
--------------050407080209030609010806 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I was wondering if this would be something cygwin could use for storing the mode bits. If I understand the usage, it would have the advantage of being compatible with with samba storage of mode bits and storage of POSIX-mode bits in a Windows ACL. -------- Original Message -------- Subject: [SMB3][PATCH] add mount option to allow retrieving POSIX mode from special ACE Date: Mon, 24 Jun 2019 02:11:57 -0500 From: Steve French <smfrench AT gmail DOT com> To: CIFS <linux-cifs AT vger DOT kernel DOT org> See e.g. https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/hh509017(v=ws.10) where it describes use of an ACE with special SID S-1-5-88-3 to store the mode. Followon patches will add the support for chmod and query_info (stat) -- Thanks, Steve --------------050407080209030609010806 Content-Type: text/x-patch; name="0001-smb3-add-new-mount-option-to-retrieve-mode-from-spec.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename*0="0001-smb3-add-new-mount-option-to-retrieve-mode-from-spec.pa"; filename*1="tch" RnJvbSA5NTJmMzBiMzFjOTAzZjhmNmY0Y2EwMjMwNjFjMTA4ZDE2Y2M2ZGY2 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBTdGV2ZSBGcmVuY2gg PHN0ZnJlbmNoQG1pY3Jvc29mdC5jb20+CkRhdGU6IE1vbiwgMjQgSnVuIDIw MTkgMDI6MDE6NDIgLTA1MDAKU3Viam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IEBAIGludCBjaWZzX3NldHVwX2NpZnNfc2Ioc3RydWN0 IHNtYl92b2wgKnB2b2x1bWVfaW5mbywKIAkJY2lmc19zYi0+bW50X2NpZnNf ZmxhZ3MgfD0gQ0lGU19NT1VOVF9OT1BPU0lYQlJMOwogCWlmIChwdm9sdW1l X2luZm8tPnJ3cGlkZm9yd2FyZCkKIAkJY2lmc19zYi0+bW50X2NpZnNfZmxh Z3MgfD0gQ0lGU19NT1VOVF9SV1BJREZPUldBUkQ7CisJaWYgKHB2b2x1bWVf aW5mby0+bW9kZV9hY2UpCisJCWNpZnNfc2ItPm1udF9jaWZzX2ZsYWdzIHw9 IENJRlNfTU9VTlRfTU9ERV9GUk9NX0FDRTsKIAlpZiAocHZvbHVtZV9pbmZv LT5jaWZzX2FjbCkKIAkJY2lmc19zYi0+bW50X2NpZnNfZmxhZ3MgfD0gQ0lG U19NT1VOVF9DSUZTX0FDTDsKIAlpZiAocHZvbHVtZV9pbmZvLT5iYWNrdXB1 aWRfc3BlY2lmaWVkKSB7Ci0tIAoyLjIwLjEKCg== --------------050407080209030609010806 Content-Type: text/plain; charset=us-ascii -- 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 --------------050407080209030609010806--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |