-
Notifications
You must be signed in to change notification settings - Fork 373
Conversation
/test-ubuntu |
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.
as per @c3d comments - I'm not a fan of silently disabling a feature. It's a security feature, the user has asked for it (even if it was implicit and they did not know they had), and we silently disabled it. |
I guess... in the spirit of moving forwards ;-), if we:
then, ack! |
e3f4e44
to
e49084e
Compare
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
a tiny nitpick ;-)
oh, and you get extra points for adding tests in ➕
virtcontainers/kata_agent.go
Outdated
@@ -1019,6 +1019,12 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec, passSeccomp bool) { | |||
grpcSpec.Linux.Seccomp = nil | |||
} | |||
|
|||
// Disable selinux | |||
if grpcSpec.Process.SelinuxLabel != "" { | |||
k.Logger().Warnf("Selinux label specified in config, but not supported in Kata yet, running container without selinux") |
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.
nitpick, for which I don't know if you might fail the CI - but, you don't need Warnf
if you have no % formatters in the string - you might be able to just use Warn
:-)
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.
Looks good to me with this change, but I am not a member, so I cannot approve.
/test-ubuntu |
Till we implement support for selinux, disable selinux by not passing selinux labels in the container spec. Fixes kata-containers#2442 Signed-off-by: Archana Shinde <[email protected]>
e49084e
to
055f317
Compare
Codecov Report
@@ Coverage Diff @@
## master #2443 +/- ##
=========================================
Coverage ? 50.63%
=========================================
Files ? 112
Lines ? 16277
Branches ? 0
=========================================
Hits ? 8242
Misses ? 7020
Partials ? 1015 |
/test-ubuntu |
Till we implement support for selinux, disable selinux
by not passing selinux labels in the container spec.
Fixes #2442
Signed-off-by: Archana Shinde [email protected]