Merge pull request #5902 from dweomer/rke2-690-on-main

cri: filter selinux xattr for image volumes
This commit is contained in:
Phil Estes
2021-08-23 09:48:10 -04:00
committed by GitHub

View File

@@ -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"))
}