From: "J. Bruce Fields" Subject: Re: [RFC v3 19/45] richacl: Also recognize nontrivial mode-equivalent acls Date: Wed, 27 May 2015 11:06:56 -0400 Message-ID: <20150527150656.GB21309@fieldses.org> References: <5e9ee3b123b3d648487cd18dc906b6a2cd23085b.1429868795.git.agruenba@redhat.com> <20150515205140.GD29627@fieldses.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org To: Andreas =?utf-8?Q?Gr=C3=BCnbacher?= Return-path: Received: from fieldses.org ([173.255.197.46]:53019 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753137AbbE0PG4 (ORCPT ); Wed, 27 May 2015 11:06:56 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, May 27, 2015 at 11:24:49AM +0200, Andreas Gr=C3=BCnbacher wrote= : > Bruce, >=20 > 2015-05-15 22:51 GMT+02:00 J. Bruce Fields : > > On Fri, Apr 24, 2015 at 01:04:16PM +0200, Andreas Gruenbacher wrote= : > > This comment is a little confusing: > > > >> + * This function does not consider the masks in @acl. > > > > Given that we do this later: > > > >> + if (acl->a_flags & RICHACL_MASKED) { > >> + owner.allowed &=3D acl->a_owner_mask; > >> + group.allowed &=3D acl->a_group_mask; > >> + everyone.allowed &=3D acl->a_other_mask; > >> + } >=20 > Indeed, the comment seems to be a left-over from a previous version, = sorry. >=20 > > I think the difference is that here you're checking that the end re= sult > > after applying masks is mode-equivalent, whereas in riachacl_equiv_= mode > > [...] you're also checking whether the masks themselves are > > mode-equivalent? >=20 > Yes. >=20 > >Is that the right thing to do? >=20 > This patch and its consequences probably weren't thought through well= enough > initially. I meanwhile think that it doesn't matter if the masks them= selves are > mode-equivalent and that we can drop this check. OK, thanks, that would simplify things. --b. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html