X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED23D3858003 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1641378938; bh=YZugdgkOh038y5kq6HZEGZSZMdPRAAoPXyLumfn28fw=; h=Date:From:To:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=QdW6dbuJmRQV4ab1hO4/JvmYdn868hBdyAVf4YLBzi8wzShzKUNxzVgdwmIHCdSin UXQuuue1m2VmR0MIO+TLxki9PCuUp5DlIk08U76/9D9AZys9jCMwgktw8KyHg0ImIn XZBQ1f4PjTPnBv017qFoW1KoiXtoLC+xCR7c7ETo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A20A93858002 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com Date: Wed, 5 Jan 2022 11:34:16 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: A notion about saving and restoring Windows file security info Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: <4c5fda33-8f7e-53d2-85ce-28eb11cfb978 AT cs DOT umass DOT edu> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4c5fda33-8f7e-53d2-85ce-28eb11cfb978@cs.umass.edu> X-Provags-ID: V03:K1:4jJPjKr4fg3WNd97N/TEgi62G7NnOVR3oGGooXjLk6LJlVYE3lA VVWdVAFJwgJZY5g3o6XMY9KkguibLh/ki0hoKvdOrDcEwgg6cZHP4gMMrDB39Qd2dULnrNT XDiM2v4PPFZtTf/Bc9yQrBw6Nu5lukWqC6fsjrWAlfNScPSWsyQk+8+jt6pejc2EanCBHWe UUaJuFdY8G/EmEGnPLtrQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:eMucqNjVYEE=:qwXviKDEPeJ3IFX1mAejVb hlk9wk24EDDqZ0D2FEU5s2Asr5P0d1kD1mQHipik66h9bmhfEkhqKuKqT0RJqPZ7w9SfKUPye 3q/pUFEofVMpSraH0D2cgTriQYswkXxnwGJBgjVVFiCqVKjvX8zfVdmuTda5rUG/H7estYf8D A8vbAgIoFQepxakcg+QmQmrZRPJAiiSc1bGStwHCrRz77eOpZab1XunEcN8BSEKAy++bxrQHz N2bN3TMueo0H/tQ9tn2cY4wAoLTcc5uq5JrpsCwcAnIPKXZ4q/82715pish/Y/Bu+zExqqS0Z QpqaPqbNnXXxv7kg0UR42f6EJzL/COXSLKYkbh2PYXHW7fjaP5G5SrXq2vc2Me4LS/isFb7WO MiPeP2B0TycqrE/2414a0sjIf7hYWRQtlT15b7QFqoLOWfC1NDW8M0ltmSlRJgOOcD1XnWTDp 5uaoYE4DCojRcv7eqEX745uSzaZhBeGi5HmKCRl0FTKxEkC6011FgdiUZQ3pxaPlGlccF3iMC N0COcTjbiUREnu6JZxOfoAGrfGli/vdjgqwv5IqnooUF+Ad8wNIsnS+K4bexRKofuO2NxdxuP 4Tog6BQrJbXq71M8SmWxtSDDf2fscFU76/f8Ivl9cUk18u9kWB8ILyO+yNt1lpm/ruJeS9YHA iqjW85aNRm0gKZzUobkbQmRQZfMlWheS2Vzn7EhHxpU8IQ6stZTXimTWgUstdHMEbIueoE0zG kzc7Sf3voha3/sDb X-Spam-Status: No, score=-75.5 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H2, SPF_FAIL, SPF_HELO_NONE, 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 AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Jan 4 22:45, Eliot Moss wrote: > Dear Cygwiners - Maybe this idea has been discussed before, and I can't say I > exactly have a specific application in mind, but I was wondering about how one > might achieve reliable backup/restore of files on a Windows system via a > backup program written to the POSIX interface and ported to Windows via > Cygwin. > > The idea is this: expose the Windows file attributes (such as system, archive, > hidden, etc.) as well as security descriptors (such as managed by icacls), via > specifically named extended attributes, those read/written by get/setfattr. > The Cygwin library could be enhanced to "know" the special names of these > attributes and use the appropriate, different, underlying calls to get/set > them. > > Is this a crazy idea? A useful one? (How useful?) What implementation > effort would be required? It would be possible with not too much effort. That would need a bit of discussion, for instance, do we want to show up the native ACL in listxattr? Corinna -- 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