RE: malloc calls and ioctl calls to soundcard cause segfault

2004-10-13 Thread Shawn Webb
s"); exit(1); } arg = RATE; if (ioctl(fd, SNDCTL_DSP_SETRATE, &arg) < 0) { perror("ioctl setrate"); exit(1); } } /* End of source */ - Original Message - From: "Robert Watson" <[EMAIL PROTECTED]> To: "S

malloc calls and ioctl calls to soundcard cause segfault

2004-10-12 Thread Shawn Webb
same results on multiple FreeBSD machines, each different versions spanning 4.10-RELEASE to 5.2.1-RELEASE (and my 5.3-BETA7 machine). Shawn Webb http://retoros.org:81/ (attached is the source code to the segfaulting application) ___ [EMAIL PROTECTED] ma

Re: syscalls implementation

2004-08-26 Thread Shawn Webb
You could overwrite sysent[SYS_kldload] to point to your own kldload function. After you do what you want to, you return what the original kldload returns. Meaning, call the original kldload and return it's value. int (*orig_kldload)(struct thread *, struct kldload_args *) = sysent[SYS_kldload]; i

recvfrom trouble

2003-12-12 Thread Shawn Webb
ping google with the module loaded, I get: -su-2.05b# ping google.com ping: cannot resolve google.com: Host name lookup failure Why doesn't this code work? Thanks, Shawn Webb ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/lis

Re: Intercepting syscall

2003-12-09 Thread Shawn Webb
ybe > the ways of changing the syscall table has changed. > > Am I mistaken? > > In not too much importance, but relevant to my question, the reason why I'm > asking, is I was presented to write an IPS (Intrusion Prevent