Skip to content

Commit

Permalink
fix storage-chown-by-maps doesnt handle -EOVERFLOW return by lgetxattr [
Browse files Browse the repository at this point in the history
Closes containers#1183]

Signed-off-by: Robert Zaage <robert@zaage.it>
  • Loading branch information
robertzaage committed Apr 6, 2022
1 parent 0daec8c commit 65f1da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/chown_unix.go
Expand Up @@ -84,7 +84,7 @@ func (c *platformChowner) LChown(path string, info os.FileInfo, toHost, toContai
}
if uid != int(st.Uid) || gid != int(st.Gid) {
cap, err := system.Lgetxattr(path, "security.capability")
if err != nil && !errors.Is(err, system.EOPNOTSUPP) && err != system.ErrNotSupportedPlatform {
if err != nil && !errors.Is(err, system.EOPNOTSUPP) && !errors.Is(err, system.EOVERFLOW) && err != system.ErrNotSupportedPlatform {
return fmt.Errorf("%s: %v", os.Args[0], err)
}

Expand Down

0 comments on commit 65f1da4

Please sign in to comment.