diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-06-25 03:25:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 03:25:43 -0400 |
commit | 8c7ce94b813014d8abb0a96b72db78d20cdaae18 (patch) | |
tree | ea727b1e7c4a747cafcba4b6806ebae522506915 /cmd/podman | |
parent | d1f57a07c24a0defc0b0027206fc4454307f64fa (diff) | |
parent | a7a701196102534d4edac8d7ccbabf7ec1cb2ccf (diff) | |
download | podman-8c7ce94b813014d8abb0a96b72db78d20cdaae18.tar.gz podman-8c7ce94b813014d8abb0a96b72db78d20cdaae18.tar.bz2 podman-8c7ce94b813014d8abb0a96b72db78d20cdaae18.zip |
Merge pull request #10768 from xabinapal/issue-10767
[NO TESTS NEEDED] Swap private and shared mount relabel options
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/common/volumes.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/common/volumes.go b/cmd/podman/common/volumes.go index aff323936..883d604da 100644 --- a/cmd/podman/common/volumes.go +++ b/cmd/podman/common/volumes.go @@ -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]) } |