-
Notifications
You must be signed in to change notification settings - Fork 160
generate: fix capability.List() for cap_last_cap not exist #157
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
generate: fix capability.List() for cap_last_cap not exist #157
Conversation
|
Dup of the just-merged #138?
|
66cb9db to
d326c89
Compare
|
@wking It seems part of same, but I don't think is a dup. |
|
On Wed, Jul 27, 2016 at 06:13:08PM -0700, Ma Shimiao wrote:
Ah, I see that with 3334d03 → d326c89 you've put this on top of master func LastCap() capability.Cap { That way the hack is isolated / DRY. And it would let us add a guard We can probably move those LastCap calls inside the g.HostSpecific |
|
And all of my above suggestions are for patching around gocapability
in ocitools for older kernels. A better fix would be to PR
syndtr/gocapability with the additional old-kernel heurstics so you
could guess at CAP_LAST_CAP in these cases. These approaches don't
have to be mutually exclusive if we want to land the RHEL6 workaround
here while we wait for the upstream PR to cook.
|
Signed-off-by: masm <[email protected]>
d326c89 to
f7df9c7
Compare
|
@wking already collected all hack together. |
|
LGTM |
Signed-off-by: masm <[email protected]> Backported to v1.0.0-rc1 from f7df9c7 opencontainers#157 (cherry-pick applied cleanly). Signed-off-by: W. Trevor King <[email protected]>
Signed-off-by: masm <[email protected]> Backported to v1.0.0.rc1 from f7df9c7 opencontainers#157 (cherry-pick applied cleanly). Signed-off-by: W. Trevor King <[email protected]>
Signed-off-by: masm [email protected]