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

validation: mounts: fix condition of source & type check #660

Merged
merged 1 commit into from
Aug 22, 2018

Conversation

alban
Copy link
Contributor

@alban alban commented Jul 31, 2018

The runtime-spec says that mount source is optional. So let's relax condition of the mount source path check, so that it only checks for an empty mount source. Ditto for the type field.

The 'mount' test now tries different mount options: bind and not bind, recursive or not, different mount propagation modes.

runc passes the test after opencontainers/runc#1845

Closes: #651

Based on work from: Dongsu Park [email protected] @dongsupark
Signed-off-by: Alban Crequy [email protected]

@alban alban force-pushed the alban/test-mounts branch from 0ad847c to cb7eeeb Compare July 31, 2018 13:59
@dongsupark
Copy link
Contributor

LGTM (but I'm not maintainer)
Tested, and it works fine with the current master branch of runc.
Thanks for taking my code into this PR. 👍

@zhouhao3
Copy link

zhouhao3 commented Aug 21, 2018

LGTM

Approved with PullApprove

@zhouhao3
Copy link

@alban need rebase.

The runtime-spec says that [mount source is optional](
https://github.com/opencontainers/runtime-spec/blob/v1.0.1/config.md#mounts).
So let's relax condition of the mount source path check, so that it only
checks for an empty mount source. Ditto for the type field.

The 'mount' test now tries different mount options: bind and not bind,
recursive or not, different mount propagation modes.

runc passes the test after opencontainers/runc#1845

Closes: opencontainers#651

Based on work from: Dongsu Park <[email protected]>
Signed-off-by: Alban Crequy <[email protected]>
@dongsupark
Copy link
Contributor

@q384566678 Rebased. PTAL

@zhouhao3
Copy link

zhouhao3 commented Aug 22, 2018

LGTM

Approved with PullApprove

@zhouhao3 zhouhao3 merged commit d0b0063 into opencontainers:master Aug 22, 2018
@dongsupark dongsupark deleted the alban/test-mounts branch August 22, 2018 07:08
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.

3 participants