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

Remove check for binding to / #1090

Merged
merged 1 commit into from
Sep 30, 2016
Merged

Conversation

crosbymichael
Copy link
Member

In order to mount root filesystems inside the container's mount
namespace as part of the spec we need to have the ability to do a bind
mount to / as the destination.

I cannot remember why this is here specifically, I know the reasons for /proc and other paths and didn't know if we just added / just to be safe or if we had a specific reason.

Signed-off-by: Michael Crosby crosbymichael@gmail.com

In order to mount root filesystems inside the container's mount
namespace as part of the spec we need to have the ability to do a bind
mount to / as the destination.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
@mrunalp
Copy link
Contributor

mrunalp commented Sep 30, 2016

LGTM

Approved with PullApprove

if err == nil {
t.Fatal(err)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Can we keep this test anyway, as it's part of the spec?

Copy link
Member Author

Choose a reason for hiding this comment

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

What do you mean?

Copy link
Member

@cyphar cyphar Sep 30, 2016

Choose a reason for hiding this comment

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

I mean to leave the test (just change err == nil to err != nil). In fact, we could add an integration test for mounting over / because I get the feeling there's probably quite a few places that we aren't testing with those semantics.

Not really important though, I'll LGTM this anyway.

@cyphar
Copy link
Member

cyphar commented Sep 30, 2016

LGTM.

Approved with PullApprove

@mrunalp mrunalp merged commit 7b1bcb3 into opencontainers:master Sep 30, 2016
@crosbymichael crosbymichael deleted the bind-root branch October 3, 2016 17:01
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.

4 participants