Re: [FS] New monitor framework in 2.6.10?

From: Stephan Menzel
Date: Mon Nov 15 2004 - 05:43:31 EST


Am Montag, 15. November 2004 11:23 schrieb Jan Engelhardt:
> > will be exactly for this kind of purpose. Some kind of monitor frameworks
> > that can generate events for all sorts of things. Sorry, I don't know any
> > more about it.
>
> Wasnot it called System Call Auditing and/or Filesystem hooks?

Well, that's what I'd like to know.
System Call Auditing just yielded a few google results but it doesn't seem to
me like a well documented feature. More like people asking for it.

> One or the other was present in SUSE's 2.4.20/.21 kernels and one is in
> 2.6.x -- and from what I have seen, they're just hooks, i.e.
>
> if(hook != NULL) { hook(fd, buf, size); }
>
> That's the most efficient thing you can have (in a function). It's only a
> question whether it is in the right function, then.

Indeed.
And just that made me hope there is something like an auditing or monitoring
framework just like for instance a accessible struct with several function
pointers where one could insert funtions to be processed whenever event x
occurs. This kind of thing yould be maintained by the kernel developers who
could put the hook just in the right place and the 'user' (which would be me
in that case) could be sure that his function would be called in the right
time and from the right place.
That would be nice.

Greetings...

Stephan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/