From: "Aneesh Kumar K.V" Subject: Re: [PATCH -V6 17/26] richacl: Permission check algorithm Date: Thu, 08 Sep 2011 16:04:44 +0530 Message-ID: <877h5j5nln.fsf@skywalker.in.ibm.com> References: <1315243548-18664-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1315243548-18664-18-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <20110907215022.GI8074@fieldses.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: agruen-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "J. Bruce Fields" Return-path: In-Reply-To: <20110907215022.GI8074-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org> Sender: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org On Wed, 7 Sep 2011 17:50:22 -0400, "J. Bruce Fields" wrote: > On Mon, Sep 05, 2011 at 10:55:39PM +0530, Aneesh Kumar K.V wrote: > > From: Andreas Gruenbacher > > > > As in the standard POSIX file permission model, each process is the > > owner, group, or other file class. A process is > > > > - in the owner file class if it owns the file, > > - in the group file class if it is in the file's owning group or it > > matches any of the user or group entries, and > > - in the other file class otherwise. > > > > Each file class is associated with a file mask. > > > > A richacl grants a requested access if the NFSv4 acl in the richacl > > grants the requested permissions (according to the NFSv4 permission > > check algorithm) and the file mask that applies to the process includes > > the requested permissions. > > I assume that by default any ui normally recalculates an upper-bound > mask automatically when you add an ace, as the posix setfacl does, so > the user doesn't have to think about masks too much? > yes. richacl userspace command does this. -aneesh -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html