Re: why is intercepting system calls considerred bad?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joshua Hudson <[email protected]> wrote:
> On 7/20/06, Irfan Habib <[email protected]> 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.

ACK.
-- 
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.

http://david.woodhou.se/why-not-spf.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux