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

pkg/ns: consider PROCFS during NS verification #227

Merged
merged 1 commit into from
May 26, 2016
Merged

pkg/ns: consider PROCFS during NS verification #227

merged 1 commit into from
May 26, 2016

Conversation

steveej
Copy link
Member

@steveej steveej commented May 25, 2016

/cc @dcbw

Fixes #226.

@steveej steveej added this to the v0.3.0 milestone May 25, 2016
@dcbw
Copy link
Member

dcbw commented May 25, 2016

LGTM though maybe add a commit message talking about how < 3.19 and >= 3.19 handle things here.

if err != nil {
return nil, fmt.Errorf("Failed to open %v: %v", nspath, err)
const (
NSFS_MAGIC = 0x6e736673
Copy link
Contributor

Choose a reason for hiding this comment

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

where are these from? link please

Copy link
Member Author

Choose a reason for hiding this comment

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

reference added, thanks

This is an attempt to bring compatibility with Kernel <3.19, where NSFS
where PROCFS was used for network namespaces.
@jonboulle
Copy link
Contributor

LGTM

@steveej steveej merged commit 6f63d9d into containernetworking:master May 26, 2016
@steveej steveej deleted the ns-verify branch June 21, 2016 23:34
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.

3 participants