Re: sysent and KEXT
Re: sysent and KEXT
- Subject: Re: sysent and KEXT
- From: Justin Walker <email@hidden>
- Date: Mon, 2 May 2005 08:35:59 -0700
On May 2, 2005, at 6:47, Marco Bambini wrote:
Hi All,
I need to patch a system call using the sysent routine in a KEXT.
No, you don't. It's unsupported, and if this is intended as a product,
your product will continually break as new releases come out. Think of
another way to do what you want.
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"
Yup; kexts are built with headers only from the kernel framework; the
build does not look in "the usual places".
How can I solve this problem?
Or better, is there another way to patch a system call inside a kext?
There is no good way to patch system calls.
Regards,
Justin
--
Justin C. Walker, Curmudgeon at Large
Institute for General Semantics
-----------
My wife 'n kids 'n dog are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------
_______________________________________________
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