Преглед на файлове

Revert "Remove the bind mount for dev/console which override the mknod/label"

This reverts commit ae85dd54582e94d36b146ab1688844ed58cc8df3.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
Alexander Larsson преди 11 години
родител
ревизия
35d08bdd01
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      pkg/libcontainer/console/console.go

+ 3 - 0
pkg/libcontainer/console/console.go

@@ -40,6 +40,9 @@ func Setup(rootfs, consolePath, mountLabel string) error {
 	if err := label.SetFileLabel(consolePath, mountLabel); err != nil {
 		return fmt.Errorf("set file label %s %s", dest, err)
 	}
+	if err := system.Mount(consolePath, dest, "bind", syscall.MS_BIND, ""); err != nil {
+		return fmt.Errorf("bind %s to %s %s", consolePath, dest, err)
+	}
 	return nil
 }