-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Make SELinux labels opt-in (--oci-worker-selinux=<BOOL>
)
#3203
Conversation
12f91d2
to
154897f
Compare
So, the only concern I have is (my dislike of) booleans, especially if their default may change at some point (if so, we probably need to have a new option I'm not very good at the SELinux terminology, and not sure which options should be "boolean only", or (may) need further customization down the line, so don't have good suggestions right now. With the above out of the way, some quick looks at what we have in Moby, which (perhaps) may help verify if the current design "looks right";
|
Yes, this is analogous to 3.
AFAICS this rather means calling
Maybe yes, but that is out of the scope of this PR. |
worker/label/label.go
Outdated
@@ -9,6 +9,7 @@ const ( | |||
Hostname = prefix + "hostname" | |||
Network = prefix + "network" // "cni" or "host" | |||
ApparmorProfile = prefix + "apparmor.profile" | |||
SELinux = prefix + "selinux" // "true" or "false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be "enabled" and "disabled"
SELinux = prefix + "selinux" // "true" or "false" | |
SELinux = prefix + "selinux" // SELinux support ("enabled", "disabled") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tonistiigi WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No strict opinion. Personally would prefer values that work with ParseBool
. Or selinux.enabled
maybe in that case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to selinux.enabled
154897f
to
cda5e94
Compare
@AkihiroSuda Check the gofmt |
Fix issue 3202 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
cda5e94
to
bd57e5f
Compare
fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I think the issue likely arose when we got rid of the selinux
build tag.
Fix #3202