u-kernelists: where do you store per-process service info?

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
Hellbender
Member
Member
Posts: 63
Joined: Fri May 01, 2015 2:23 am
Libera.chat IRC: Hellbender

u-kernelists: where do you store per-process service info?

Post by Hellbender »

Hi.

I'm trying to flesh out my u-kernel, and started to think about where to store sensitive information, such as effective user id, chroot, etc. that might get inherited by child processes. Possibilities:

Such data is stored in kernel: pros) that they can be copied to child processes on fork; can be deleted when process dies. cons) kernel has to know something about the services and how such data is inherited by child processes OR kernel fixes what data is available and processes just have to live with it.

Such data is stored in each service that needs it: pros) service related stuff is contained in the service. cons) kernel would have to let services copy their data to child processes; and let services know when processes data can be discarded.

Such data is stored in a single "container" service, and other services can store/retrieve the data they need. pros) all data in a single point, like in the kernel option, yet data outside of the kernel; easier for kernel to duplicate, discard data when needed. cons) services have to keep querying the data.

Thoughts, anyone?
Hellbender OS at github.
Post Reply