Skip to content

Commit

Permalink
Give the helper pod more range of MCS categories
Browse files Browse the repository at this point in the history
Signed-off-by: galal-hussein <[email protected]>
  • Loading branch information
galal-hussein authored and derekbit committed May 27, 2024
1 parent ab80ed5 commit c4dc309
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,11 @@ func (p *LocalPathProvisioner) createHelperPod(action ActionType, cmd []string,
"-s", strconv.FormatInt(o.SizeInBytes, 10),
"-m", string(o.Mode),
"-a", string(action)}

helperPod.Spec.Containers[0].SecurityContext = &v1.SecurityContext{
SELinuxOptions: &v1.SELinuxOptions{
Level: "s0-s0:c0.c1023",
},
}
// If it already exists due to some previous errors, the pod will be cleaned up later automatically
// https://github.com/rancher/local-path-provisioner/issues/27
logrus.Infof("create the helper pod %s into %s", helperPod.Name, p.namespace)
Expand Down

0 comments on commit c4dc309

Please sign in to comment.