Skip to content

Commit

Permalink
selinux: Disable selinux
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
amshinde committed Feb 7, 2020
1 parent a91cb13 commit 387fe26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virtcontainers/kata_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,9 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec, passSeccomp bool) {
grpcSpec.Linux.Seccomp = nil
}

// Disable selinux
grpcSpec.Process.SelinuxLabel = ""

// By now only CPU constraints are supported
// Issue: https://github.com/kata-containers/runtime/issues/158
// Issue: https://github.com/kata-containers/runtime/issues/204
Expand Down

0 comments on commit 387fe26

Please sign in to comment.