From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] POSIX ACL support Date: Wed, 21 Nov 2012 20:17:30 +0200 Message-ID: <83k3tevn0l.fsf@gnu.org> References: <878v9yr1h1.fsf@silenus.orebokech.com> <87ehjpp9b7.fsf@silenus.orebokech.com> <87mwybm84m.fsf@silenus.orebokech.com> <50ACF4E9.60604@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1353521871 8758 80.91.229.3 (21 Nov 2012 18:17:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2012 18:17:51 +0000 (UTC) Cc: romain@orebokech.com, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 21 19:18:03 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 1TbEs6-0002E2-UK for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2012 19:18:03 +0100 Original-Received: from localhost ([::1]:57943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbErw-0003LN-Do for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2012 13:17:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbErt-0003LI-WF for emacs-devel@gnu.org; Wed, 21 Nov 2012 13:17:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbErs-0001Bu-V3 for emacs-devel@gnu.org; Wed, 21 Nov 2012 13:17:49 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:36099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbErs-0001Bq-Mo for emacs-devel@gnu.org; Wed, 21 Nov 2012 13:17:48 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MDU00000O3L1T00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Wed, 21 Nov 2012 20:17:47 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MDU00MKAO5MWQ70@a-mtaout20.012.net.il>; Wed, 21 Nov 2012 20:17:47 +0200 (IST) In-reply-to: <50ACF4E9.60604@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:155029 Archived-At: > Date: Wed, 21 Nov 2012 07:36:09 -0800 > From: Paul Eggert > Cc: emacs-devel@gnu.org > > On 11/21/2012 06:25 AM, Stefan Monnier wrote: > > I'd start with whichever is easiest. > > I suggest something that's even simpler at the C level: > an API that simply clones attributes from one file to > another. The two files can be represented by file names > and file descriptors. There's no need to build a runtime > representation in C or Lisp of the metadata. Just copy > the metadata directly, from one file to the other. But that could be impossible in some cases, no? Can a user on a Posix host always copy the ACLs, no matter what access right these ACLs specify? 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. IOW, something like umask filtering might be necessary to avoid shooting yourself in the foot. Right?