lkml.org 
[lkml]   [2006]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: why is intercepting system calls considerred bad?
Date
Joshua Hudson <joshudson@gmail.com> wrote:
> On 7/20/06, Irfan Habib <irfan.habib@gmail.com> 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-21 09:51    [W:0.031 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site