X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 166463858D39
Authentication-Results: sourceware.org;
 dmarc=pass (p=none dis=none) header.from=gmx.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1641459783;
 bh=8S9pzPq+Gqn7kw2GqwHBfzeIzUfuzK0TKlePw7/Yobg=;
 h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To;
 b=SszQNGj8jUgjbxsUNSupoap//VN/jP05tQMAzBWB0MydsCIC+hrdSznDTykOHwLWb
 7KgJ9XzCCBObcHP+FS+hQKmQXCydU2W0xrufUIjSoqcO82kl2I3mkeH7EHWLfYP+6i
 QuiAyIHkclRCRp/QHiyeLKGNtJ+lETzrg+tJLjzw=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Message-ID: <7d756609-3681-d150-582a-e9d23765e4b2@gmx.com>
Date: Thu, 6 Jan 2022 09:03:03 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
 Thunderbird/91.4.1
Subject: Re: A notion about saving and restoring Windows file security info
Content-Language: en-GB
To: cygwin@cygwin.com
References: <4c5fda33-8f7e-53d2-85ce-28eb11cfb978@cs.umass.edu>
 <YdV0KNw+hZ5iS1AC@calimero.vinschen.de>
 <7cea7819-c03e-60c2-1acc-380b1bd0c18f@cs.umass.edu>
From: Sam Edge <sam.edge@gmx.com>
In-Reply-To: <7cea7819-c03e-60c2-1acc-380b1bd0c18f@cs.umass.edu>
X-Provags-ID: V03:K1:F+flZ+t7soIdcXA8WO0+JIU07QnZ24FHnxDGtshSeqWHtWQ3fOI
 Ccxa78+2wF3gM+Yz533xXxGHPdsLuCObU3M14wZFiluaMQP+VVLIGY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y/5Hdc
 uTbPTBEMBmP0a+mULYVSD38H+KhE+iG6jSrQRvhjo0onqBZfbdOEYz1e7jrRz8z644Yry3S8L
 CdGeZi7BwucBaFVzGN1d/qg0wVT6WunwyrbMV0SNt8OEP+/Nx6rRnoc9jx67cR/dGNkfGHIab
 z+ktv6CZZj+jSye+ZnqCdxHQLrTDF34nd15ibFXlE/B0Ko+ye4fWLzh5hQDKNhZHg1dQXvY5e
 XecHiV8UZ2BY/8=
X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,
 RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On 05/01/2022 17:41, Eliot Moss wrote:
>  Therefore, my thought is to make the presentation of these
> attributes by attr_list (is that the canonical call?) and probably also the
> special interpretation of them for get/set, controllable in some way.  The
> means of control that occurs to me is an environment variable, or a flag
> within the CYGWIN env var.  Other folks more deeply involved in Cygwin library
> code, etc., may have a more informed notion of the best way to control this,
> but it strikes me as one of those things that you would have to ask for.
>
> In principle, each of Attrs, SDs, and ADS_ could be separately controlled, if
> we think that is important (might be).
>

Hi Eliot.

I can see the appeal of mapping hidden/system/readonly to suitably
namespaced xattrs and exposing ADSes. However I would caution about having too
many selectable options as the behaviour for every combination in the running
system would have to be considered against filesystems that have been
manipulated with every other combination.

As the recent update to setup.exe has shown, even the different types of
symlink handling can cause unforeseen problems and that's a single option with
only a few possible values that only affect how they're written and not how
they're read.

Just a thought.

--
Sam Edge


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