Skip to content
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

Merged
merged 1 commit into from
Nov 7, 2016

Conversation

hqhq
Copy link
Contributor

@hqhq hqhq commented Nov 1, 2016

Signed-off-by: Qiang Huang [email protected]

* 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.
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

@cyphar
Copy link
Member

cyphar commented Nov 1, 2016

LGTM.

Approved with PullApprove

* 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for PID namespace. We..

@hqhq hqhq force-pushed the fix_nsexec_comments branch from 1816ba3 to 84a4218 Compare November 3, 2016 03:25
@hqhq
Copy link
Contributor Author

hqhq commented Nov 3, 2016

@mrunalp Updated.

@dqminh
Copy link
Contributor

dqminh commented Nov 7, 2016

LGTM

Approved with PullApprove

1 similar comment
@mrunalp
Copy link
Contributor

mrunalp commented Nov 7, 2016

LGTM

Approved with PullApprove

@mrunalp mrunalp merged commit 8779fa5 into opencontainers:master Nov 7, 2016
@hqhq hqhq deleted the fix_nsexec_comments branch November 8, 2016 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants