Skip to content

Conversation

@Mashimiao
Copy link

Signed-off-by: masm [email protected]

@wking
Copy link
Contributor

wking commented Jul 27, 2016 via email

@Mashimiao Mashimiao force-pushed the generate-fix-cap_last_cap branch from 66cb9db to d326c89 Compare July 28, 2016 01:09
@Mashimiao
Copy link
Author

@wking It seems part of same, but I don't think is a dup.
It's an additional fix for host which does not have cap_last_cap.

@wking
Copy link
Contributor

wking commented Jul 28, 2016

On Wed, Jul 27, 2016 at 06:13:08PM -0700, Ma Shimiao wrote:

It's an additional fix for host which does not have cap_last_cap.

Ah, I see that with 3334d03d326c89 you've put this on top of master
and there's still stuff there ;). Can we collect the hack together
into a:

func LastCap() capability.Cap {

}

That way the hack is isolated / DRY. And it would let us add a guard
with Uname 1 or some such if it turns out that we need to fine-tune
your current guessing logic later.

We can probably move those LastCap calls inside the g.HostSpecific
guard as well to make it clear that your system's maximal capability
doesn't matter when g.HostSpecific is false.

@wking
Copy link
Contributor

wking commented Jul 28, 2016 via email

@Mashimiao Mashimiao force-pushed the generate-fix-cap_last_cap branch from d326c89 to f7df9c7 Compare July 28, 2016 06:08
@Mashimiao
Copy link
Author

@wking already collected all hack together.

@wking
Copy link
Contributor

wking commented Jul 28, 2016

On Wed, Jul 27, 2016 at 11:11:04PM -0700, Ma Shimiao wrote:

@wking already collected all hack together.

f7df9c7 looks good to me. We can drop the hack if/when something
like this lands in gocapability.

@mrunalp
Copy link
Contributor

mrunalp commented Jul 28, 2016

LGTM

@mrunalp mrunalp merged commit 083fb79 into opencontainers:master Jul 28, 2016
wking pushed a commit to wking/ocitools-v2 that referenced this pull request Jul 29, 2016
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]>
wking pushed a commit to wking/ocitools-v2 that referenced this pull request Jul 29, 2016
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]>
@Mashimiao Mashimiao deleted the generate-fix-cap_last_cap branch November 14, 2016 09:45
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