summaryrefslogtreecommitdiff
path: root/volume/mounts
diff options
context:
space:
mode:
authorSalahuddin Khan <salah@docker.com>2017-11-15 22:20:33 -0800
committerSalahuddin Khan <salah@docker.com>2018-08-13 21:59:11 -0700
commit763d8392612942ff5c32a35f8bdafd7ae93d3321 (patch)
treeb9b90624e4d3c3e88a95b45e0f723ec74e35a3ee /volume/mounts
parent1fd7e4c28d3a4a21c3540f03a045f96a4190b527 (diff)
downloaddocker-763d8392612942ff5c32a35f8bdafd7ae93d3321.tar.gz
Add ADD/COPY --chown flag support to Windows
This implements chown support on Windows. Built-in accounts as well as accounts included in the SAM database of the container are supported. NOTE: IDPair is now named Identity and IDMappings is now named IdentityMapping. The following are valid examples: ADD --chown=Guest . <some directory> COPY --chown=Administrator . <some directory> COPY --chown=Guests . <some directory> COPY --chown=ContainerUser . <some directory> On Windows an owner is only granted the permission to read the security descriptor and read/write the discretionary access control list. This fix also grants read/write and execute permissions to the owner. Signed-off-by: Salahuddin Khan <salah@docker.com>
Diffstat (limited to 'volume/mounts')
-rw-r--r--volume/mounts/mounts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/volume/mounts/mounts.go b/volume/mounts/mounts.go
index a1c5dce1c8..63a1406814 100644
--- a/volume/mounts/mounts.go
+++ b/volume/mounts/mounts.go
@@ -95,7 +95,7 @@ func (m *MountPoint) Cleanup() error {
// configured, or creating the source directory if supplied.
// The, optional, checkFun parameter allows doing additional checking
// before creating the source directory on the host.
-func (m *MountPoint) Setup(mountLabel string, rootIDs idtools.IDPair, checkFun func(m *MountPoint) error) (path string, err error) {
+func (m *MountPoint) Setup(mountLabel string, rootIDs idtools.Identity, checkFun func(m *MountPoint) error) (path string, err error) {
if m.SkipMountpointCreation {
return m.Source, nil
}