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

Use opencontainers/selinux package #1365

Merged
merged 1 commit into from
Apr 15, 2017
Merged

Conversation

hqhq
Copy link
Contributor

@hqhq hqhq commented Mar 9, 2017

It's splitted as a separate project.

Fixes: #897

Signed-off-by: Qiang Huang h.huangqiang@huawei.com

@hqhq hqhq force-pushed the use_go_selinux branch from 78e8a68 to fa1460d Compare March 9, 2017 02:56
@hqhq
Copy link
Contributor Author

hqhq commented Mar 9, 2017

We'll need opencontainers/selinux#7 to be merged to fix CI failure.

@rhatdan
Copy link
Contributor

rhatdan commented Mar 9, 2017

I would prefer the rename before this gets merged.

@hqhq
Copy link
Contributor Author

hqhq commented Mar 10, 2017

@rhatdan Sure, I'll rework this PR after rename and other fixes in opencontainers/selinux are merged.

@hqhq
Copy link
Contributor Author

hqhq commented Mar 10, 2017

Updated, all green now~

@rhatdan
Copy link
Contributor

rhatdan commented Mar 10, 2017

I have requested one more change to the opencontainers/selinux package to put the go bindings into a golang subdir, so we can add a policy subdir and move container-selinux package into opencontainers/selinux package.

opencontainers/selinux#10

@crosbymichael
Copy link
Member

@rhatdan is upstream good now? I saw that issue is closed so are you happy with the naming of the project now so that we can update?

@rhatdan
Copy link
Contributor

rhatdan commented Mar 21, 2017

@crosbymichael we have renamed a bunch of function calls. Lets get these merged and then we will need to change the calls in libcontainer as well as vendor it in.

@rhatdan
Copy link
Contributor

rhatdan commented Mar 22, 2017

Upstream has been merged, we can start to convert runc to use the new interfaces.

It's splitted as a separate project.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
@hqhq
Copy link
Contributor Author

hqhq commented Mar 23, 2017

@rhatdan Thanks, I'll rework later today.

@hqhq
Copy link
Contributor Author

hqhq commented Mar 23, 2017

Updated.

@hqhq hqhq changed the title Use go-selinux package Use opencontainers/selinux package Mar 23, 2017
@@ -7,7 +7,7 @@ import (
"strings"

"github.com/opencontainers/runc/libcontainer/configs"
"github.com/opencontainers/runc/libcontainer/selinux"
selinux "github.com/opencontainers/selinux/go-selinux"
Copy link
Contributor

@rhatdan rhatdan Mar 23, 2017

Choose a reason for hiding this comment

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

@runcom says there is no need to use selinux here.

selinux "github.com/opencontainers/selinux/go-selinux"

The code should work fine without it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Other then that this LGTM

Copy link
Member

Choose a reason for hiding this comment

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

yup, there shouldn't be the need of aliasing if go-selinux exports selinux package afaict.

Copy link
Contributor Author

@hqhq hqhq Mar 23, 2017

Choose a reason for hiding this comment

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

I think it's an explicit or implicit issue, and I'd prefer it to be explicit, we can wait for other maintainers' opinions :)

Copy link
Member

Choose a reason for hiding this comment

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

go-imports also makes it explicit, its fine both ways and is not an issue at all

@crosbymichael
Copy link
Member

crosbymichael commented Mar 27, 2017

LGTM

Approved with PullApprove

@hqhq
Copy link
Contributor Author

hqhq commented Apr 7, 2017

ping @cyphar @mrunalp @dqminh

@crosbymichael
Copy link
Member

ping @opencontainers/runc-maintainers

@dqminh
Copy link
Contributor

dqminh commented Apr 15, 2017

LGTM

Approved with PullApprove

@dqminh dqminh merged commit 13a8c5d into opencontainers:master Apr 15, 2017
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.

5 participants