Date: Sun, 16 Nov 2003 07:53:30 -0800 (PST) From: Kai Zhu <zkzklj@yahoo.com> To: freebsd-hackers@freebsd.org Subject: Questions on intercepting execve syscall Message-ID: <20031116155330.42894.qmail@web21409.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hello all, I am writing a KLD module to intercept execve() as following: static int my_execve(struct thread *td, struct execve_args *uap) { return(execve(td,uap)); } As you can see, I first just want to make sure that my_execve won't affect the original execve, then I will add some new logic in my_execve before returning to execve(). After kldload with this module, I always get "Bad address" error if I use any command like ls, cd, etc. Does anyone know where my problem is? Thanks! --------------------------------- Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031116155330.42894.qmail>