Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758040AbYFCMR3 (ORCPT ); Tue, 3 Jun 2008 08:17:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757401AbYFCMRA (ORCPT ); Tue, 3 Jun 2008 08:17:00 -0400 Received: from fxip-0047f.externet.hu ([88.209.222.127]:50173 "EHLO pomaz-ex.szeredi.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757369AbYFCMQ6 (ORCPT ); Tue, 3 Jun 2008 08:16:58 -0400 To: viro@ZenIV.linux.org.uk CC: miklos@szeredi.hu, mtk.manpages@googlemail.com, drepper@redhat.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-man@vger.kernel.org, linux-fsdevel@vger.kernel.org In-reply-to: <20080603112221.GW28946@ZenIV.linux.org.uk> (message from Al Viro on Tue, 3 Jun 2008 12:22:21 +0100) Subject: Re: [PATCH] utimensat() non-conformances and fixes [v3] References: <482D4665.4050401@gmail.com> <48401E7E.9090304@gmail.com> <20080603112221.GW28946@ZenIV.linux.org.uk> Message-Id: From: Miklos Szeredi Date: Tue, 03 Jun 2008 14:16:33 +0200 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 936 Lines: 24 > > > > I'm not sure of the correct way to get the required nameidata (to do a > > > > vfs_permission() call) from the file descriptor. Can you give me a > > > > tip there? > > > > > > Could you point me at the right way of doing this? > > > > You don't need nameidata for this at all. Just call permission() with > > a NULL nameidata. > > > > Ugly API? Yes, will be cleaned up if we manage to find some common > > ground with the VFS maintainers. > > As soon as I'm done with sysctls... Can't you just do that independently (for now just put a d_find_alias() in there and be done with it)? If you fix every piece of horrid code that you come across, it'll never be done... Miklos -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/