Re: sysent and KEXT
Re: sysent and KEXT
- Subject: Re: sysent and KEXT
- From: Chris Ridd <email@hidden>
- Date: Mon, 02 May 2005 16:24:47 +0100
On 2/5/05 2:47 pm, Marco Bambini <email@hidden> wrote:
> Hi All,
>
> I need to patch a system call using the sysent routine in a KEXT.
> As far as I know, for a kext, I should only use headers from
> Kernel.framework
> and sys/syscall.h is a userland header...
>
> So, if I write something like this in my KEXT:
> #include <sys/syscall.h>
>
> then I have a compilation error:
> "sys/syscall.h: No such file or directory"
>
> How can I solve this problem?
> Or better, is there another way to patch a system call inside a kext?
There's an example of doing this at:
<http://landonf.bikemonkey.org/code/macosx/ptrace_deny_attach.20041010201303
.11809.mojo.html>
Hope it helps!
Cheers,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden