I need to set a field called "container id" for every process which a child process can inherit from its parent. Do I need to edit the proc structure to add a field in it in the sub-section "copied upon fork"?
I don't think adding such field in that section will give you the copy and set for free, but I could be wrong. Have a look at kern_proc.c to see how the fork is handled.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.