summaryrefslogtreecommitdiff
path: root/daemon/oci_linux_test.go
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 /daemon/oci_linux_test.go
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 'daemon/oci_linux_test.go')
-rw-r--r--daemon/oci_linux_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/oci_linux_test.go b/daemon/oci_linux_test.go
index e618951ef9..bb296a8703 100644
--- a/daemon/oci_linux_test.go
+++ b/daemon/oci_linux_test.go
@@ -21,7 +21,7 @@ func TestTmpfsDevShmNoDupMount(t *testing.T) {
d := Daemon{
// some empty structs to avoid getting a panic
// caused by a null pointer dereference
- idMappings: &idtools.IDMappings{},
+ idMapping: &idtools.IdentityMapping{},
configStore: &config.Config{},
}
c := &container.Container{
@@ -58,7 +58,7 @@ func TestIpcPrivateVsReadonly(t *testing.T) {
d := Daemon{
// some empty structs to avoid getting a panic
// caused by a null pointer dereference
- idMappings: &idtools.IDMappings{},
+ idMapping: &idtools.IdentityMapping{},
configStore: &config.Config{},
}
c := &container.Container{