From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] POSIX ACL support Date: Wed, 21 Nov 2012 10:25:21 -0800 Message-ID: <50AD1C91.5030708@cs.ucla.edu> References: <878v9yr1h1.fsf@silenus.orebokech.com> <87ehjpp9b7.fsf@silenus.orebokech.com> <87mwybm84m.fsf@silenus.orebokech.com> <50ACF4E9.60604@cs.ucla.edu> <83k3tevn0l.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353522329 13111 80.91.229.3 (21 Nov 2012 18:25:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2012 18:25:29 +0000 (UTC) Cc: romain@orebokech.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 21 19:25:40 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TbEzT-0006lU-EM for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2012 19:25:39 +0100 Original-Received: from localhost ([::1]:33879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbEzI-0006Ip-Rm for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2012 13:25:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbEzG-0006Ij-5s for emacs-devel@gnu.org; Wed, 21 Nov 2012 13:25:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbEzF-00046h-9J for emacs-devel@gnu.org; Wed, 21 Nov 2012 13:25:26 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:45942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbEzD-000467-9a; Wed, 21 Nov 2012 13:25:23 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 90DB939E8116; Wed, 21 Nov 2012 10:25:22 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I5kcH7lSMhKY; Wed, 21 Nov 2012 10:25:22 -0800 (PST) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 2F72639E8122; Wed, 21 Nov 2012 10:25:22 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2 In-Reply-To: <83k3tevn0l.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155030 Archived-At: On 11/21/12 10:17, Eli Zaretskii wrote: > Can a user on a Posix > host always copy the ACLs, no matter what access right these ACLs > specify? I don't know of any exception, no, though I don't pretend to be an expert on Posix ACLS. > And in addition, this could be inconvenient or even dangerous: you > could set access rights on a file you created that give you no access > at all, not even read access. This couldn't happen for files that you're copying, since if you can't read them you can't copy them anyway. But anyway, it's OK to create files that you can't read -- Emacs already can do that, I expect. Romain's point about special file handlers is a good one. If we want this to work with Tramp we have to have a way in C or in Lisp to represent all the file metadata, so that we can copy it. Doing this correctly would solve not only this problem, but some other bugs in this area (e.g., group or group permission is wrong, time stamps are truncated).