Add capability for snapshotters to declare support for UID remapping
This allows user namespace support to progress, either by allowing snapshotters to deal with ownership, or falling back to containerd doing a recursive chown. In the future, when snapshotters implement idmap mounts, they should report the "remap-ids" capability. Co-authored-by: Rodrigo Campos <rodrigoca@microsoft.com> Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com> Signed-off-by: David Leadbeater <dgl@dgl.cx>
This commit is contained in:
committed by
Rodrigo Campos
parent
36f520dc04
commit
31a6449734
@@ -33,6 +33,11 @@ const (
|
||||
UnpackKeyFormat = UnpackKeyPrefix + "-%s %s"
|
||||
inheritedLabelsPrefix = "containerd.io/snapshot/"
|
||||
labelSnapshotRef = "containerd.io/snapshot.ref"
|
||||
|
||||
// LabelSnapshotUIDMapping is the label used for UID mappings
|
||||
LabelSnapshotUIDMapping = "containerd.io/snapshot/uidmapping"
|
||||
// LabelSnapshotGIDMapping is the label used for GID mappings
|
||||
LabelSnapshotGIDMapping = "containerd.io/snapshot/gidmapping"
|
||||
)
|
||||
|
||||
// Kind identifies the kind of snapshot.
|
||||
|
||||
Reference in New Issue
Block a user