Merge pull request #10768 from xabinapal/issue-10767

[NO TESTS NEEDED] Swap private and shared mount relabel options
This commit is contained in:
OpenShift Merge Robot
2021-06-25 03:25:43 -04:00
committed by GitHub

View File

@ -337,9 +337,9 @@ func getBindMount(args []string) (spec.Mount, error) {
}
switch kv[1] {
case "private":
newMount.Options = append(newMount.Options, "z")
case "shared":
newMount.Options = append(newMount.Options, "Z")
case "shared":
newMount.Options = append(newMount.Options, "z")
default:
return newMount, errors.Wrapf(util.ErrBadMntOption, "%s mount option must be 'private' or 'shared'", kv[0])
}