Return-Path: Received: from mail-pf0-f193.google.com ([209.85.192.193]:33160 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726424AbeGQTDL (ORCPT ); Tue, 17 Jul 2018 15:03:11 -0400 Received: by mail-pf0-f193.google.com with SMTP id b17-v6so920869pfi.0 for ; Tue, 17 Jul 2018 11:29:19 -0700 (PDT) Message-ID: <1531852157.18827.9.camel@dubeyko.com> Subject: Re: [PATCH] hfsplus: drop ACL support From: Viacheslav Dubeyko To: Christoph Hellwig , Andrew Morton Cc: "Ernesto A." =?ISO-8859-1?Q?Fern=E1ndez?= , linux-fsdevel@vger.kernel.org, Jan Kara Date: Tue, 17 Jul 2018 11:29:17 -0700 In-Reply-To: <20180717131810.GE13582@lst.de> References: <20180714190608.wtnmmtjqeyladkut@eaf> <1531595463.5345.1.camel@dubeyko.com> <20180716170748.5264352de39271b67cc54143@linux-foundation.org> <20180717131810.GE13582@lst.de> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, 2018-07-17 at 15:18 +0200, Christoph Hellwig wrote: > On Mon, Jul 16, 2018 at 05:07:48PM -0700, Andrew Morton wrote: > > > > On Sat, 14 Jul 2018 12:11:03 -0700 Viacheslav Dubeyko > o.com> wrote: > > > > > > > > On Sat, 2018-07-14 at 16:06 -0300, Ernesto A. Fernández wrote: > > > > > > > > The HFS+ Access Control Lists have not worked at all for the > > > > past > > > > five > > > > years, and nobody seems to have noticed. Besides, POSIX draft > > > > ACLs > > > > are > > > > not compatible with MacOS. Drop the feature entirely. > > > > > > > Bugs need to be fixed but not to drop. Otherwise, it needs to > > > drop the > > > whole HFS+ support from the kernel. > > Yes, we could make it depend on BROKEN and hope that someone comes > > along and fixes it - there's little cost in carrying such a thing. > > > > Or maybe it can never work for some reason and should indeed be > > dropped, I don't know.  I was interested in understanding the > > reasoning > > behind hch's ack, but I can't find it on linux-fs-devel.  Help? > The issue is that hfsplus supports it's own NFSv4-like ACLs, which > are nothing like the Posix ACLs supported by the Linux driver.  Or > in other words: they were always a Linux-only incompatible extension > that should never have been merged. The richacls subsystem was not in the kernel at the time of ACL support implementation. So, the idea of Linux-like ACLs in HFS+ was not to be compatible with MAC OS X. The goal was to provide the opportunity to use the ACLs only in Linux if anybody likes this. The MAC OS X will ignore such xattrs. As far as I can see, the ACL subsystem in HFS+ stops to work after Christoph's reworking the ACL subsystem in the Linux. So, we have richacls subsystem in the Linux kernel now. I believe that it makes sense to implement the richacls support in HFS+ at first. Then we can discuss to drop or not to drop the current ACL implementation in HFS+.  Also, there is CONFIG_HFSPLUS_FS_POSIX_ACL option that provides opportunity to exclude the ACL support in HFS+ from the compilation. Thanks, Vyacheslav Dubeyko.