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

cr: don't dump network devices and their configuration #1840

Merged
merged 1 commit into from
Jul 18, 2018

Conversation

avagin
Copy link
Contributor

@avagin avagin commented Jul 10, 2018

RunC doesn't manage network devices and their configurations,
so it is impossible to describe external dependencies to restore them
back.

This means that all users have to set --empty-ns network, so let's do
this by default.

Signed-off-by: Andrei Vagin avagin@openvz.org

checkpoint.go Outdated
@@ -127,6 +127,9 @@ var namespaceMapping = map[specs.LinuxNamespaceType]int{
func setEmptyNsMask(context *cli.Context, options *libcontainer.CriuOpts) error {
var nsmask int

/* Runc doesn't manage network devices and their configuration */
nsmask = unix.CLONE_NEWNET

Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps just

- 	var nsmask int+ 	/* Runc doesn't manage network devices and their configuration */+ 	nsmask := unix.CLONE_NEWNET

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed, thanks

RunC doesn't manage network devices and their configuration,
so it is impossible to describe external dependencies to restore them
back.

This means that all users have to set --empty-ns network, so let's do
this by default.

Signed-off-by: Andrei Vagin <avagin@openvz.org>
@avagin avagin force-pushed the empty-ns-network branch from a82cc94 to 8187fb7 Compare July 11, 2018 06:25
@kolyshkin
Copy link
Contributor

LGTM

@crosbymichael
Copy link
Member

crosbymichael commented Jul 12, 2018

LGTM

Approved with PullApprove

@avagin
Copy link
Contributor Author

avagin commented Jul 18, 2018

@cyphar @mrunalp @dqminh @hqhq Could one of you review this pr? Thanks!

@hqhq
Copy link
Contributor

hqhq commented Jul 18, 2018

LGTM

Approved with PullApprove

@hqhq hqhq merged commit bc14672 into opencontainers:master Jul 18, 2018
kolyshkin added a commit to kolyshkin/moby that referenced this pull request Jul 31, 2018
This is mostly to include
opencontainers/runc#1840

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants