Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 1 Dec 2002 20:53:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 1 Dec 2002 20:53:22 -0500 Received: from blackbird.intercode.com.au ([203.32.101.10]:10258 "EHLO blackbird.intercode.com.au") by vger.kernel.org with ESMTP id ; Sun, 1 Dec 2002 20:53:21 -0500 Date: Mon, 2 Dec 2002 13:00:27 +1100 (EST) From: James Morris To: Greg KH cc: Olaf Dietsche , , Subject: Re: [RFC] LSM fix for stupid "empty" functions In-Reply-To: <20021201192532.GA9278@kroah.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 856 Lines: 27 On Sun, 1 Dec 2002, Greg KH wrote: > > I think we still want to make sure that the module author has explicitly > > accounted for all of the hooks, in case new hooks are added. > > But with this patch, if the module author hasn't specified a hook, they > get the "dummy" ones. So the structure should always be full of > pointers, making the VERIFY_STRUCT macro pointless. Yes, but defaulting unspecified hooks to dummy operations could be dangerous. A module might appear to compile and run perfectly well, but be missing some important new hook. - James -- James Morris - 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/