Bump Buidah to v1.42.0 for Podman v5.7

Vendor Buildah v1.42.0 into Podman for v5.7.0.
This will also drag in:

go.podman.io/common v0.66.0
go.podman.io/image v5.38.0
go.podman.io/storage v1.61.0

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
tomsweeneyredhat
2025-10-22 11:38:57 -04:00
parent 08c670b232
commit c72102d1b2
48 changed files with 367 additions and 903 deletions

View File

@@ -21,6 +21,7 @@ const (
var (
relevantAttributes = []string{"security.capability", imaXattr, "user.*"} // the attributes that we preserve - we discard others
irrelevantAttributes = []string{"user.overlay.*"} // the attributes that we discard, even from the relevantAttributes list
initialXattrListSize = 64 * 1024
initialXattrValueSize = 64 * 1024
)
@@ -33,6 +34,13 @@ func isRelevantXattr(attribute string) bool {
if err != nil || !matched {
continue
}
for _, irrelevant := range irrelevantAttributes {
matched, err := filepath.Match(irrelevant, attribute)
if err != nil || !matched {
continue
}
return false
}
return true
}
return false
@@ -65,7 +73,7 @@ func Lgetxattrs(path string) (map[string]string, error) {
return nil, fmt.Errorf("unable to read list of attributes for %q: size would have been too big", path)
}
m := make(map[string]string)
for _, attribute := range strings.Split(string(list), string('\000')) {
for attribute := range strings.SplitSeq(string(list), string('\000')) {
if isRelevantXattr(attribute) {
attributeSize := initialXattrValueSize
var attributeValue []byte