Skip to content

Commit

Permalink
Revert "Give the helper pod more range of MCS categories"
Browse files Browse the repository at this point in the history
This reverts commit c4dc309.

Signed-off-by: Derek Su <derek.su@suse.com>
  • Loading branch information
derekbit committed Jun 13, 2024
1 parent 4a77e7c commit 4e3741a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -674,11 +674,7 @@ 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 4e3741a

Please sign in to comment.