Re: 2.4 Ready list - Kernel Hooks

From: Greg KH (
Date: Wed Oct 23 2002 - 12:09:53 EST

On Wed, Oct 23, 2002 at 09:10:13AM +0100, Richard J Moore wrote:
> >On Wed, Oct 23, 2002 at 12:09:38AM +0100, Richard J Moore wrote:
> >> We created
> >> kernel hooks for exactly the same reasons that LSM needs hooks - to allow
> >> ancillary function to exist outside the kernel, to avoid kernel bloat, to
> >> allow more than one function to be called from a given call-back (think of
> >> kdb and kprobes - both need to be called from do_debug).
> >
> >No, that is NOT the same reason LSM needs hooks! LSM hooks are there to
> >mediate access to various kernel objects, from within the kernel itself.
> >Please do not confuse LSM with any of the above projects.
> I would have to understand what you meant by "mediate between various
> kernel objects" to know whether LSM's need for hooks is radically different
> to RAS needs. Can you explain further?

Please read the LSM documentation for more information about this. It
can be found in the kernel at:
and there are a number of USENIX and OLS papers about different aspects
of the project at:

In the beginning of the LSM project, both the DProbes and LTT groups
came asking that we use their patches to implement LSM. It was
quickly determined that the types of "hooks" these projects offered was
not what the LSM group needed (or wanted). So the current
implementation was developed.

Hope this helps. If you have any further questions, please feel free to
ask (after reading that documentation :)


greg k-h
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:01:05 EST