Skip to content

Commit

Permalink
IDMapping field for mount point
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com>
  • Loading branch information
AlexeyPerevalov committed Apr 18, 2022
1 parent 6969a0a commit 125f429
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ type Mount struct {
Source string `json:"source,omitempty"`
// Options are fstab style mount options.
Options []string `json:"options,omitempty"`

// UID/GID mappings used for changing file owners w/o calling chown, fs should support it.
// Every mount point could have its own mapping
UIDMappings []LinuxIDMapping `json:"uid_mappings,omitempty"`
GIDMappings []LinuxIDMapping `json:"gid_mappings,omitempty"`
}

// Hook specifies a command that is run at a particular event in the lifecycle of a container
Expand Down

0 comments on commit 125f429

Please sign in to comment.