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

validate: fix cap validation #488

Merged
merged 1 commit into from
Oct 18, 2017

Conversation

zhouhao3
Copy link

Signed-off-by: zhouhao [email protected]

@Mashimiao
Copy link

This is not a correct fix. The manpage says The ambient capability set obeys the invariant that no capability can ever be ambient if it is not both permitted and inheritable. So just keep&&

@zhouhao3
Copy link
Author

My understanding is that both the permitted and the inheritable are valid for flase, but in the current case, when one of them is false, it is executed, which is not in accordance with the rules.
Also we need to change effective to permitted.

@wking
Copy link
Contributor

wking commented Sep 28, 2017 via email

@wking
Copy link
Contributor

wking commented Sep 28, 2017

This PR should be part of v0.3.0. As a config-validation bugfix, it really belonged in v0.2.0, but we've cut v0.2.0, and v0.3.0 is the next-most-urgent milestone ;).

@zhouhao3
Copy link
Author

 # permitted: True, inheritable: True, ambient legal: True 
 # permitted: True, inheritable: False, ambient legal: True 
 # permitted: False, inheritable: True, ambient legal: True 
 # permitted: False, inheritable: False, ambient legal: False

I think this is the right result, exactly what I want. So my changes are correct and do not need to be modified.Only if permitted and inheritable are false, ambient is false.

@wking
Copy link
Contributor

wking commented Sep 29, 2017

permitted: True, inheritable: False, ambient legal: True

This is not both permitted and inheritable.

@zhouhao3
Copy link
Author

Sorry, I misunderstood.

@Mashimiao
Copy link

Mashimiao commented Sep 29, 2017

LGTM

Approved with PullApprove

@zhouhao3
Copy link
Author

zhouhao3 commented Oct 6, 2017

ping @liangchenye @hqhq @mrunalp

@zhouhao3
Copy link
Author

@liangchenye @hqhq PTAL

@liangchenye
Copy link
Member

liangchenye commented Oct 18, 2017

LGTM

Approved with PullApprove

@liangchenye liangchenye merged commit 6554add into opencontainers:master Oct 18, 2017
@zhouhao3 zhouhao3 deleted the validate-cap-fix branch October 18, 2017 06:38
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