diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-19 13:31:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 13:31:01 +0200 |
commit | 541655f31a5301ea042d04782d1635ad51e9f434 (patch) | |
tree | 37d898c0b2dfb013b80d2a6793526294d079737e | |
parent | 4e14fa05c9e6ce2ad927e953057294ae05748b37 (diff) | |
parent | dc8fdb46c5eda03afed31708474664a52ac958b0 (diff) | |
download | podman-541655f31a5301ea042d04782d1635ad51e9f434.tar.gz podman-541655f31a5301ea042d04782d1635ad51e9f434.tar.bz2 podman-541655f31a5301ea042d04782d1635ad51e9f434.zip |
Merge pull request #15844 from rhatdan/selinux
label.Relabel third option is shared not recurse
-rw-r--r-- | libpod/container_internal_common.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/container_internal_common.go b/libpod/container_internal_common.go index 9c4a3bb67..a0ae22ff4 100644 --- a/libpod/container_internal_common.go +++ b/libpod/container_internal_common.go @@ -2659,7 +2659,7 @@ func (c *Container) fixVolumePermissions(v *ContainerNamedVolume) error { return nil } -func (c *Container) relabel(src, mountLabel string, recurse bool) error { +func (c *Container) relabel(src, mountLabel string, shared bool) error { if !selinux.GetEnabled() || mountLabel == "" { return nil } @@ -2674,7 +2674,7 @@ func (c *Container) relabel(src, mountLabel string, recurse bool) error { return nil } } - return label.Relabel(src, mountLabel, recurse) + return label.Relabel(src, mountLabel, shared) } func (c *Container) ChangeHostPathOwnership(src string, recurse bool, uid, gid int) error { |