From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755218AbYEaIbM (ORCPT ); Sat, 31 May 2008 04:31:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751885AbYEaIa4 (ORCPT ); Sat, 31 May 2008 04:30:56 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:46994 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751695AbYEaIaz (ORCPT ); Sat, 31 May 2008 04:30:55 -0400 Date: Sat, 31 May 2008 04:30:52 -0400 From: Christoph Hellwig To: Miklos Szeredi Cc: linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, jmorris@namei.org, sds@tycho.nsa.gov, eparis@redhat.com, casey@schaufler-ca.com, agruen@suse.de, jjohansen@suse.de, penguin-kernel@I-love.SAKURA.ne.jp, hch@infradead.org, viro@ZenIV.linux.org.uk, linux-kernel@vger.kernel.org Subject: Re: [patch 01/15] security: pass path to inode_create Message-ID: <20080531083052.GH24135@infradead.org> References: <20080529134903.615127628@szeredi.hu> <20080529134958.655985182@szeredi.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080529134958.655985182@szeredi.hu> User-Agent: Mutt/1.5.17 (2007-11-01) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 29, 2008 at 03:49:04PM +0200, Miklos Szeredi wrote: > From: Miklos Szeredi > > In the inode_create() security operation and related functions pass > the path (vfsmount + dentry) to the parent directory instead of the > inode. AppArmor will need this. So you're once again switching vfs_ to a pass a vfsmount argument, this time hidden under struct path. It's really hard to grasp a "no" sometimes, isn't it? :)