Starting process from kernel space

Bruno Abele (abele@iname.com)
Tue, 23 Sep 1997 12:49:34 +0200


Hi,

I need to start a process/program while being in the kernel to filter
some text. The input and output are used by a filesystem (in kernel, not
a deamon). The filesystem decides, when to start the program and
waits for it to finish, the result is then used. The user process must
not be destroyed.

Example:
User decides to access file "a". There exists no file a, but files b and
c. Program (userdefined) should start, get the names a, b and c as input
and respond b or c. For security reasons program runs as user's process.

Which is better: Giving files as params or read them from stdin?

And more important: Is it possible to do this with the current kernel?
What other way (deamon?) is available?

kernel_thread may not be useable from within kernelspace, and the same
with fork/execve?

Thanks,

Bruno

----------------------------------------------------------------------
Bruno Abele _/_/_/_, _,_,
http://wwwcip.rus.uni-stuttgart.de/~inf19190 _/ _/ _/ _/
_/ _/ _/ _/
Phone: 0711/7816-407 _/_/_/ _/_/_/_/
_/ _/ _/ _/
NEW: Please use my mail address: _/ _/ _/ _/
abele@iname.com _/_/_/-' _/ _/
----------------------------------------------------------------------