-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More fix to nsexec.c's comments #1168
Conversation
* change the PID namespace of the calling process, because doing so | ||
* would change the caller's idea of its own PID (as reported by getpid()), | ||
* which would break many applications and libraries, so we must fork | ||
* to actually enter the new PID namespace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't really need to explain why the PID namespace is so funky. You can just say that we have to fork again to enter the PID namespace (even though we unshared it) because the PID namespace affects children only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still got questions with comments like you said in out old implementation, so I think we can explain it clearly. It's not redundance for most of people.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough.
Signed-off-by: Qiang Huang <[email protected]>
* of the requested namespaces. If we've been asked to | ||
* CLONE_NEWUSER, we will ask our parent (stage 0) to set up | ||
* our user mappings for us. Then, we create a new child | ||
* (stage 2: JUMP_INIT) for PID namespace's good. We then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for PID namespace. We..
1816ba3
to
84a4218
Compare
@mrunalp Updated. |
Signed-off-by: Qiang Huang [email protected]