moby/pkg/system
Cory Snider c0573b133f
pkg/system: return even richer xattr errors
The names of extended attributes are not completely freeform. Attributes
are namespaced, and the kernel enforces (among other things) that only
attributes whose names are prefixed with a valid namespace are
permitted. The name of the attribute therefore needs to be known in
order to diagnose issues with lsetxattr. Include the name of the
extended attribute in the errors returned from the Lsetxattr and
Lgetxattr so users and us can more easily troubleshoot xattr-related
issues. Include the name in a separate rich-error field to provide code
handling the error enough information to determine whether or not the
failure can be ignored.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 43bf65c174)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-23 09:27:49 +01:00
..
args_windows.go Windows: (WCOW) Generate OCI spec that remote runtime can escape 2019-03-12 18:41:55 -07:00
chtimes.go pkg/system: rename maxTime and re-use, define unixEpochTime, update GoDoc 2022-10-07 18:34:44 +02:00
chtimes_linux_test.go pkg/system: fix missing assertions and use sub-tests for ChTimes 2022-10-07 22:57:01 +02:00
chtimes_nowindows.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
chtimes_test.go pkg/system: fix missing assertions and use sub-tests for ChTimes 2022-10-07 22:57:01 +02:00
chtimes_windows.go pkg/system: windows: setCTime(): remove redundant conversion 2022-10-07 18:34:44 +02:00
chtimes_windows_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
errors.go pkg/system: move ErrNotSupportedOperatingSystem to where it's used 2023-09-07 22:04:33 +02:00
filesys.go pkg/system: make IsAbs() platform-agnostic 2022-08-27 15:11:27 +02:00
filesys_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
filesys_windows.go pkg/system: synchronize mkdirall() with latest os.MkDirAll() 2022-10-15 13:24:43 +02:00
image_os_deprecated.go image: implement CheckOS, deprecate pkg/system IsOSSupported 2023-09-07 22:14:44 +02:00
init_windows.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
lstat_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
lstat_unix_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
lstat_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
mknod.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
mknod_freebsd.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
mknod_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
stat_bsd.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
stat_darwin.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
stat_linux.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
stat_openbsd.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
stat_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
stat_unix_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
stat_windows.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
utimes_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
utimes_unix_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
utimes_unsupported.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
xattrs.go pkg/system: return even richer xattr errors 2024-01-23 09:27:49 +01:00
xattrs_linux.go pkg/system: return even richer xattr errors 2024-01-23 09:27:49 +01:00
xattrs_unsupported.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00