lkml.org 
[lkml]   [2002]   [Dec]   [1]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateSun, 1 Dec 2002 09:49:23 -0800
FromGreg KH <>
SubjectRe: [RFC] LSM fix for stupid "empty" functions
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/

\
 
 \ /
  Last update: 2005-03-22 11:31    [W:0.243 / U:0.650 seconds]
©2003-2008 Jasper Spaans