Re: hook of syscall

From: Tigran Aivazian (tigran@veritas.com)
Date: Tue Apr 18 2000 - 06:37:38 EST


On Tue, 18 Apr 2000, Khimenko Victor wrote:

> In <Pine.LNX.4.21.0004180837380.935-100000@saturn.homenet> Tigran Aivazian (tigran@veritas.com) wrote:
> > On Tue, 18 Apr 2000, Tabei Koji wrote:
> >> Is the hook of sys_xxx possible?
> >> If it is possible, Do you know a document or a sample?
>
> > yes, an example of changing system calls (temporarily) is in a timetravel
> > module I wrote ages ago:
>
> > http://www.ocston.org/~tigran/tt/tt.html
>
> Hmm. I've not looked on your beast yet, but I'm puzzled: you can intercept
> userspace calls easily (you do not need do it in kernel in fact: take look on
> strace/ltrace/etc) but sometimes kernel just calls sys_open directly ! Is it
> intercepted in your timetravel module as well ?

no, only accesses going through sys_call_table[] table.

Regards,
Tigran.

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



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:13 EST