Re: why is intercepting system calls considerred bad?

From: Bodo Eggert
Date: Fri Jul 21 2006 - 03:53:22 EST

Joshua Hudson <joshudson@xxxxxxxxx> wrote:
> On 7/20/06, Irfan Habib <irfan.habib@xxxxxxxxx> wrote:

>> I recently met a kernel janitor, who told me that intercepting system
>> calls is undesirable, why?
> I'll bite.
> You intercept. Somebody else intercepts. You want to stop intercepting.

Use a double-linked list.

Having a mechanism to intercept syscalls will slow down syscall processing,
and there was no legit user in the history of linux. If you need something
like that, there is ptrace.

> For this reason, anybody who intercepts a system call must be compiled
> in,

No, but they may need to be compiled in for other reasons.

> and if two intercept the same system call, than the link order
> dictates behavior.
> Obviously not desirable.

Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at