Processes and mmap
Darren Tucker
dtucker at zip.com.au
Wed Jul 2 06:31:40 EST 2008
Georgi Chulkov wrote:
> Hello,
>
> For a key exchange algorithm I'm working on, I would like to keep a little bit
> of shared state between the main server process and the processes that
> clients connect to. So far, I'm considering mmap for the purpose.
>
> But I cannot figure out where I need to put the mmap initialization call,
> where it would be called at server startup (before any fork()s/exec()s), and
> never again.
>
> Could someone please briefly explain how OpenSSH manages its various
> processes - such as when processes are created and where in the code that
> happens?
Try Neils Provos' paper on privsep:
http://www.citi.umich.edu/u/provos/ssh/privsep.html
If you still have questions after reading that, then please feel free to
ask here.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list