Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262409AbUKQUX4 (ORCPT ); Wed, 17 Nov 2004 15:23:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262442AbUKQUWg (ORCPT ); Wed, 17 Nov 2004 15:22:36 -0500 Received: from peabody.ximian.com ([130.57.169.10]:27807 "EHLO peabody.ximian.com") by vger.kernel.org with ESMTP id S262403AbUKQUTz (ORCPT ); Wed, 17 Nov 2004 15:19:55 -0500 Subject: [patch] inotify: use permission not vfs_permission From: Robert Love To: Mike Waychison Cc: Christoph Hellwig , ttb@tentacle.dhs.org, linux-kernel@vger.kernel.org In-Reply-To: <419BAFE1.7030500@sun.com> References: <1100710677.6280.2.camel@betsy.boston.ximian.com> <1100714560.6280.7.camel@betsy.boston.ximian.com> <20041117190850.GA11682@infradead.org> <1100718601.4981.2.camel@betsy.boston.ximian.com> <20041117191803.GA11830@infradead.org> <1100719052.4981.4.camel@betsy.boston.ximian.com> <419BAFE1.7030500@sun.com> Content-Type: text/plain Date: Wed, 17 Nov 2004 15:17:04 -0500 Message-Id: <1100722624.4981.49.camel@betsy.boston.ximian.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1043 Lines: 36 On Wed, 2004-11-17 at 15:09 -0500, Mike Waychison wrote: > use permission() I appreciate the constructive comment. John, attached patch replaces vfs_permission() with permission(). Thanks, Mike. Robert Love Use permission() instead of generic_permission(). Signed-Off-By: Robert Love diff -u linux/drivers/char/inotify.c linux/drivers/char/inotify.c --- linux/drivers/char/inotify.c 2004-11-17 12:28:27.921136656 -0500 +++ linux/drivers/char/inotify.c 2004-11-17 12:28:27.921136656 -0500 @@ -166,7 +166,7 @@ inode = nd.dentry->d_inode; /* you can only watch an inode if you have read permissions on it */ - error = generic_permission(inode, MAY_READ, NULL); + error = permission(inode, MAY_READ); if (error) { inode = ERR_PTR(error); goto release_and_out; - 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/