Re: [RFC] LSM fix for stupid "empty" functions

From: Greg KH (greg@kroah.com)
Date: Sun Dec 01 2002 - 12:49:23 EST


On Sun, Dec 01, 2002 at 12:17:54AM -0800, Crispin Cowan wrote:
> Greg KH wrote:
>
> >I'm _really_ tired of all of the "empty" functions that all security
> >modules need to provide. So here's a brute force patch that lets any
> >security module only set the functions that it wants to override. If
> >the function is NULL, then the "dummy" function will be used instead.
> >
> Sounds good to me. So you're just creating a default null function, and
> then stuffing all the stubs with a pointer to that function?

No, it uses the dummy_* function that matches that function type if you
do not specify the function. Look at the definition of the
set_to_dummy_if_null() macro for how it works.

thanks,

greg k-h
-
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/



This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:11 EST