Pawel Jakub Dawidek wrote:
> On Fri, Dec 20, 2002 at 07:43:37PM +0100, Pawel Jakub Dawidek wrote:
> +> Simple example (from kld module):
> +>
> +> sysent[SYS_chmod].sy_call = myfunction;
> +> sysent[SYS_open].sy_call = myfunction;
> +> sysent[SYS_execve].sy_call = myfunction;
[ ... ]
> Ok, I've found solution (ripped from trap.c, ehh).

This is actually a bad way to do things.

There is a system call loadable module type, and you should
use that instead of directly accessing the system call entry
table and stomping on values without asserting appropriate
locks.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to