Skip to content

Commit

Permalink
Merge pull request #5104 from dweomer/1.5.0-rke2-690
Browse files Browse the repository at this point in the history
[release/1.5 backport] cri: filter selinux xattr for image volumes
  • Loading branch information
dmcgowan committed Oct 9, 2021
2 parents 8686ede + c0534c1 commit c41d458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cri/opts/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ func copyExistingContents(source, destination string) error {
if len(dstList) != 0 {
return errors.Errorf("volume at %q is not initially empty", destination)
}
return fs.CopyDir(destination, source)
return fs.CopyDir(destination, source, fs.WithXAttrExclude("security.selinux"))
}

0 comments on commit c41d458

Please sign in to comment.