Skip to content

Add uint32 cast to unix.SELINUX_MAGIC#71

Merged
mrunalp merged 1 commit intoopencontainers:masterfrom
saschagrunert:type-converstion
Feb 27, 2020
Merged

Add uint32 cast to unix.SELINUX_MAGIC#71
mrunalp merged 1 commit intoopencontainers:masterfrom
saschagrunert:type-converstion

Conversation

@saschagrunert
Copy link
Contributor

Otherwise this value will be treated as int32, which results in an
build error in 386 environments:

selinux_linux.go:118:14: constant 4185718668 overflows int32

Otherwise this value will be treated as `int32`, which results in an
build error in 386 environments:

```
selinux_linux.go:118:14: constant 4185718668 overflows int32
```

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
@rhatdan
Copy link
Collaborator

rhatdan commented Feb 27, 2020

LGTM
@mrunalp @giuseppe PTAL

Approved with PullApprove

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

@mrunalp
Copy link
Contributor

mrunalp commented Feb 27, 2020

LGTM

Approved with PullApprove

@mrunalp mrunalp merged commit 420b70a into opencontainers:master Feb 27, 2020
@saschagrunert saschagrunert deleted the type-converstion branch February 27, 2020 16:58
@kolyshkin
Copy link
Collaborator

Thanks for catching this! Looks like we need to have some kind of CI for this repo

@saschagrunert
Copy link
Contributor Author

Yeah some cross compilation builds would be good. I think I can follow up on that :)

@thaJeztah
Copy link
Member

@rhatdan is it possible to tag a v1.3.3 with this fix? (this regression was included in the latest v1.3.2 patch)

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.

6 participants