Skip to content

Commit 8c7ce94

Browse files
Merge pull request containers#10768 from xabinapal/issue-10767
[NO TESTS NEEDED] Swap private and shared mount relabel options
2 parents d1f57a0 + a7a7011 commit 8c7ce94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/podman/common/volumes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ func getBindMount(args []string) (spec.Mount, error) {
337337
}
338338
switch kv[1] {
339339
case "private":
340-
newMount.Options = append(newMount.Options, "z")
341-
case "shared":
342340
newMount.Options = append(newMount.Options, "Z")
341+
case "shared":
342+
newMount.Options = append(newMount.Options, "z")
343343
default:
344344
return newMount, errors.Wrapf(util.ErrBadMntOption, "%s mount option must be 'private' or 'shared'", kv[0])
345345
}

0 commit comments

Comments
 (0)