Skip to content

Commit

Permalink
Merge pull request #15844 from rhatdan/selinux
Browse files Browse the repository at this point in the history
label.Relabel third option is shared not recurse
  • Loading branch information
openshift-merge-robot authored Sep 19, 2022
2 parents 4e14fa0 + dc8fdb4 commit 541655f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libpod/container_internal_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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 {
Expand Down

0 comments on commit 541655f

Please sign in to comment.