From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joel Becker Subject: Re: [RFC] The reflink(2) system call v4. Date: Wed, 13 May 2009 11:27:23 -0700 Message-ID: <20090513182723.GD32316@mail.oracle.com> References: <20090511223414.GA28209@mail.oracle.com> <1242130714.31807.25.camel@localhost.localdomain> <20090512172200.GC6896@mail.oracle.com> <1242149567.31807.90.camel@localhost.localdomain> <20090512180339.GG6896@mail.oracle.com> <4A0A2698.2000208@schaufler-ca.com> <20090513164259.GA32316@mail.oracle.com> <1242235438.9974.46.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: James Morris , jim owens , linux-security-module@vger.kernel.org, mtk.manpages@gmail.com, Casey Schaufler , linux-fsdevel@vger.kernel.org, ocfs2-devel@oss.oracle.com, viro@zeniv.linux.org.uk To: Stephen Smalley Return-path: Content-Disposition: inline In-Reply-To: <1242235438.9974.46.camel@localhost.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ocfs2-devel-bounces@oss.oracle.com Errors-To: ocfs2-devel-bounces@oss.oracle.com List-Id: linux-fsdevel.vger.kernel.org On Wed, May 13, 2009 at 01:23:58PM -0400, Stephen Smalley wrote: > File capabilities live under security.*, but ACLs predate the security > namespace and live in the system namespace as > "system.posix_acl_access" (and if a directory, there is also a > "system.posix_acl_default" attribute that specifies the default ACL for > new files in that directory). > > In the preserve_security==0 case, you'd want to: > - drop all attributes under security.* on the new inode, > - set (security., value) to the name:value pair provided by > security_inode_init_security(), > - set system.posix_acl_access to the default ACL associated with the > parent directory (the "system.posix_acl_default" attribute on the > parent). > > The latter two steps are what is already done in the new inode creation > code path, so you hopefully can just reuse that code. I am absolutely expecting to reuse that code. I was just trying to make sure I didn't miss any steps prior to the normal new-inode stuff. Thanks. Joel -- The zen have a saying: "When you learn how to listen, ANYONE can be your teacher." Joel Becker Principal Software Developer Oracle E-mail: joel.becker@oracle.com Phone: (650) 506-8127