Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Erase ambient capabilities. #808

Merged
merged 1 commit into from
Jun 9, 2018

Conversation

Random-Liu
Copy link
Member

This is not a huge problem to containerd/cri, because our default ambient list is empty. https://github.com/containerd/containerd/blob/master/oci/spec_unix.go#L97

However, we add ambient cap if user explicitly adds it. This is not a CVE, but a behavior change to me. We decided to follow docker's behavior for backward compatibility. And we can carry on discussion about how to better handle this in kubernetes/kubernetes#56374.

Signed-off-by: Lantao Liu [email protected]

@Random-Liu Random-Liu added this to the v1.11 milestone Jun 8, 2018
@dmcgowan
Copy link
Member

dmcgowan commented Jun 8, 2018

Do you want this in 1.1.1? It is a behavior change, but are you more concerned with being consistent with Docker or 1.1.0? I don't quite understand how such a change might affect users though, is this a commonly used feature which anyone would be relying on if we changed it in 1.1.1...

@Random-Liu
Copy link
Member Author

@dmcgowan Will cherry-pick. :) We'll maintain 1.1.x for a long time, let's make sure it is working correctly.

@Random-Liu Random-Liu modified the milestones: v1.11, v1.0.3 Jun 8, 2018
@Random-Liu
Copy link
Member Author

/test pull-cri-containerd-node-e2e

Copy link
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

/LGTM
good

Copy link
Member

@abhi abhi left a comment

Choose a reason for hiding this comment

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

LGTM

@Random-Liu Random-Liu merged commit 5a1105c into containerd:master Jun 9, 2018
@Random-Liu Random-Liu deleted the erase-ambient-caps branch June 9, 2018 03:06
Random-Liu referenced this pull request Jun 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants