| ... | ... |
@@ -10,7 +10,7 @@ import ( |
| 10 | 10 |
|
| 11 | 11 |
"github.com/dotcloud/docker/archive" |
| 12 | 12 |
"github.com/dotcloud/docker/daemon/execdriver" |
| 13 |
- "github.com/dotcloud/docker/utils" |
|
| 13 |
+ "github.com/dotcloud/docker/pkg/symlink" |
|
| 14 | 14 |
) |
| 15 | 15 |
|
| 16 | 16 |
type BindMap struct {
|
| ... | ... |
@@ -213,7 +213,7 @@ func createVolumes(container *Container) error {
|
| 213 | 213 |
} |
| 214 | 214 |
|
| 215 | 215 |
// Create the mountpoint |
| 216 |
- rootVolPath, err := utils.FollowSymlinkInScope(filepath.Join(container.basefs, volPath), container.basefs) |
|
| 216 |
+ rootVolPath, err := symlink.FollowSymlinkInScope(filepath.Join(container.basefs, volPath), container.basefs) |
|
| 217 | 217 |
if err != nil {
|
| 218 | 218 |
return err |
| 219 | 219 |
} |
| ... | ... |
@@ -11,8 +11,8 @@ import ( |
| 11 | 11 |
"github.com/dotcloud/docker/pkg/label" |
| 12 | 12 |
"github.com/dotcloud/docker/pkg/libcontainer" |
| 13 | 13 |
"github.com/dotcloud/docker/pkg/libcontainer/mount/nodes" |
| 14 |
+ "github.com/dotcloud/docker/pkg/symlink" |
|
| 14 | 15 |
"github.com/dotcloud/docker/pkg/system" |
| 15 |
- "github.com/dotcloud/docker/utils" |
|
| 16 | 16 |
) |
| 17 | 17 |
|
| 18 | 18 |
// default mount point flags |
| ... | ... |
@@ -129,7 +129,7 @@ func setupBindmounts(rootfs string, bindMounts libcontainer.Mounts) error {
|
| 129 | 129 |
return err |
| 130 | 130 |
} |
| 131 | 131 |
|
| 132 |
- dest, err = utils.FollowSymlinkInScope(dest, rootfs) |
|
| 132 |
+ dest, err = symlink.FollowSymlinkInScope(dest, rootfs) |
|
| 133 | 133 |
if err != nil {
|
| 134 | 134 |
return err |
| 135 | 135 |
} |
| ... | ... |
@@ -20,6 +20,7 @@ import ( |
| 20 | 20 |
"github.com/dotcloud/docker/archive" |
| 21 | 21 |
"github.com/dotcloud/docker/daemon" |
| 22 | 22 |
"github.com/dotcloud/docker/nat" |
| 23 |
+ "github.com/dotcloud/docker/pkg/symlink" |
|
| 23 | 24 |
"github.com/dotcloud/docker/registry" |
| 24 | 25 |
"github.com/dotcloud/docker/runconfig" |
| 25 | 26 |
"github.com/dotcloud/docker/utils" |
| ... | ... |
@@ -404,7 +405,7 @@ func (b *buildFile) addContext(container *daemon.Container, orig, dest string, r |
| 404 | 404 |
) |
| 405 | 405 |
|
| 406 | 406 |
if destPath != container.RootfsPath() {
|
| 407 |
- destPath, err = utils.FollowSymlinkInScope(destPath, container.RootfsPath()) |
|
| 407 |
+ destPath, err = symlink.FollowSymlinkInScope(destPath, container.RootfsPath()) |
|
| 408 | 408 |
if err != nil {
|
| 409 | 409 |
return err |
| 410 | 410 |
} |