diff options
author | Matthew Heon <mheon@redhat.com> | 2021-05-13 14:41:38 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-05-17 09:10:59 -0400 |
commit | 6efca0bbac4346be1c9693c5ef5c592f2fc21035 (patch) | |
tree | 5bb6d35178cb634b982cf013c1f59ad539711f7d /libpod/container_internal.go | |
parent | 3bdbe3ce969ac510b8d4ee44da4578da9fed659c (diff) | |
download | podman-6efca0bbac4346be1c9693c5ef5c592f2fc21035.tar.gz podman-6efca0bbac4346be1c9693c5ef5c592f2fc21035.tar.bz2 podman-6efca0bbac4346be1c9693c5ef5c592f2fc21035.zip |
Ensure that :Z/:z/:U can be used with named volumes
Docker allows relabeling of any volume passed in via -v, even
including named volumes. This normally isn't an issue at all,
given named volumes get the right label for container access
automatically, but this becomes an issue when volume plugins are
involved - these aren't managed by Podman, and may well be
unaware of SELinux labelling. We could automatically relabel
these volumes on creation, but I'm still reluctant to do that
(feels like it could break things). Instead, let's allow :z and
:Z to be used with named volumes, so users can explicitly request
relabel of a volume plugin-backed volume.
We also get :U at the same time. I don't see any real need for it
but it also doesn't seem to hurt, so I didn't bother disabling
it.
Fixes #10273
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/container_internal.go')
0 files changed, 0 insertions, 0 deletions