SCSI disks.

2000-09-03 Thread petro
Hi! I have the following problem: I installed FreeBSD 4.1 on Compaq Proliant with SCSI disks. I tried to change in kernel such parameters config kernel root on wd0 to config kernel root on id0 also I added such strings controller ida0 disk id0 at ida0 drive0 disk id1 at ida0 drive1 but when i

Q: System call interception

2000-09-03 Thread Pavlin Ivanov Radoslavov
I need to write some code that will be like a wrapper for some user-level binaries and will intercept some system calls before and after each call, and eventually modify the arguments and/or the result. First I was looking at ptrace(3), but seems that the *BSD ptrace doesn't have the equivalent

Kernel problem...

2000-09-03 Thread petro
Excuse that I again trouble you. I installed FreeBSD 4.1 on Compaq Proliant and I try to compile kernel I make such things #config KERNEL_NAME #cd ../../compile/KERNEL_NAME #make depend ..making #make Nothing happening I again receive # Then I try to run #make install but I receive such

Re: Q: System call interception

2000-09-03 Thread awr
Intercepting syscalls is very easy. In my mind, what you should do is write a KLD that creates a syscall that mimicks the actions of what syscall you are going to hijack. Your new syscall will only look at the struct ##syscall_args *uap pointer [kernel land argument to syscall] and modify it.

Re: Kernel problem...

2000-09-03 Thread petro
It said that it doesn't now how to buildkernel. Also excuse I installed 3.5-RELEASE and not 4.1 but I must change this config root kernel on wd0 because I have only SCSI disks so after machine rebooted I receive such message can't mount root(2) it is because he tried to find root on wd0. I also

Boot problem!

2000-09-03 Thread petro
Excuse that I again trouble you, but after I read snth on Freebsd.org I have such questions. I installed FreeBSD 3.5 on Compaq Proliant 1500 with SCSI disks and after booting I receive such message: changing root device to wd0s1a changing root device to wd0a error 6: panic: cannot mount root (2)

Re: Q: System call interception

2000-09-03 Thread Pavlin Ivanov Radoslavov
Intercepting syscalls is very easy. In my mind, what you should do is write a KLD that creates a syscall that mimicks the actions of what Thanks for the detailed info and the pointers. However, I forgot to mention that the solution I need should not require modifications to the system,

Re: Kernel problem...

2000-09-03 Thread CrazZzy Slash
try after #cd ../../compile/KERNEL_NAME do #vi Makefile and look through it.. P.S. Sorry for my bad English.. :) On Sun, 3 Sep 2000, petro wrote: Excuse that I again trouble you. I installed FreeBSD 4.1 on Compaq Proliant and I try to compile kernel I make such things #config