site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Microsoft-Entourage/11.1.0.040913 On 2/5/05 2:47 pm, Marco Bambini <marco@vampiresoft.com> 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Chris Ridd