From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH 00/16] vfs: atomic open v4 (part 1) Date: Fri, 25 May 2012 16:18:39 +0100 Message-ID: <13673.1337959119@redhat.com> References: <87k400i9y1.fsf@tucsk.pomaz.szeredi.hu> <1335357857-16416-1-git-send-email-miklos@szeredi.hu> <6422.1337872046@redhat.com> Cc: dhowells@redhat.com, viro@ZenIV.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, hch@infradead.org, torvalds@linux-foundation.org To: Miklos Szeredi Return-path: In-Reply-To: <87k400i9y1.fsf@tucsk.pomaz.szeredi.hu> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Miklos Szeredi wrote: > > For instance, in lookup_open(), you call security_path_mknod() prior to > > calling vfs_create(), but you don't call it prior to calling atomic_open() > > or in, say, nfs_atomic_open(). > > We call security_path_mknod() before ->atomic_open() in may_o_create(). Okay. > > I'm also wondering if you're missing an audit_inode() call in the if > > (created) path after the retry_lookup label. > > There's no audit_inode() on the created dentry neither in the original > code nor in the modified code. > > But that may be a bug regardless, it's just independent of my changes. > At least AFAICS. Fair enough. David