oxagast has asked for the wisdom of the Perl Monks concerning the following question:
I would like to be able to fork child processes off (another arbitrary program), then pass syscalls to them with syscall(&SYS_x). From my understanding syscall will play with the parent process, but I need it on the child. I need to be able to use a lot of them, because I am writing a syscall fuzzer. Does anybody know how I can do this in perl? I've seen it done in C, with a program called trinity, but it doesn't have the functionality that I would like.
Thanks,
Marshall
(p.s. sorry if I am posting in the wrong section, I'm a newb to the forums.)
Re: Passing syscalls to (forked?) child processes
by Illuminatus (Curate) on Oct 31, 2012 at 23:51 UTC
|
Based on what I know about trinity, it has a 'master' process that knows about the syscalls. When it forks a child, it already has all necessary parameters, which the child uses. I'm not sure what you mean by 'another arbitrary program'. If you create the equivalent in perl of what the main trinity program does, you should be able to do the same thing. perl supports both fork() and syscall(). However, you will have to build all of the 'base functionality' already present in trinity (syscall profiles by value, random-fd-opener, etc). fnord | [reply] |
|