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

Add CAP prefix for capabilities #257

Merged
merged 2 commits into from
Sep 16, 2015
Merged

Conversation

mrunalp
Copy link
Contributor

@mrunalp mrunalp commented Sep 9, 2015

See opencontainers/runtime-spec#160

Signed-off-by: Mrunal Patel [email protected]

@mrunalp
Copy link
Contributor Author

mrunalp commented Sep 10, 2015

@LK4D4 @crosbymichael @dqminh ping

@LK4D4
Copy link
Contributor

LK4D4 commented Sep 10, 2015

It's sorta breaking change for libcontainer :) Also capability library using words without CAP for their String() method.

@mrunalp
Copy link
Contributor Author

mrunalp commented Sep 10, 2015

@LK4D4 One option is to allow it in the config but strip it out while passing to libcontainer for now.

@dqminh
Copy link
Contributor

dqminh commented Sep 11, 2015

Or maybe we can accept both. Detect if the old caps are started with CAP_, accepts them and rewrite the state to have CAP_ prefix.

@crosbymichael
Copy link
Member

LGTM

@mrunalp
Copy link
Contributor Author

mrunalp commented Sep 15, 2015

Rebased @LK4D4 ping.

@dqminh
Copy link
Contributor

dqminh commented Sep 15, 2015

If we merge this, we will still require a compatibility layer in docker to add CAP_ for now right @mrunalp ?

@mrunalp
Copy link
Contributor Author

mrunalp commented Sep 15, 2015

@dqminh Yes, but I think that should be okay given all the other changes that we have made. @crosbymichael can correct me.

@dqminh
Copy link
Contributor

dqminh commented Sep 15, 2015

LGTM

1 similar comment
@LK4D4
Copy link
Contributor

LK4D4 commented Sep 16, 2015

LGTM

LK4D4 added a commit that referenced this pull request Sep 16, 2015
Add CAP prefix for capabilities
@LK4D4 LK4D4 merged commit dae4560 into opencontainers:master Sep 16, 2015
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
Example lists "root' but text mentions "bundlePath"
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.

5 participants