From e991f041a1a6e0ec4ef77b91dd2d61bbc83c0ded Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Wed, 11 May 2016 23:25:42 +1000 Subject: [PATCH] Revert "Need to make sure labels applied to /dev" Signed-off-by: Aleksa Sarai --- libcontainer/rootfs_linux.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/libcontainer/rootfs_linux.go b/libcontainer/rootfs_linux.go index 4ff01c058..fe1db75eb 100644 --- a/libcontainer/rootfs_linux.go +++ b/libcontainer/rootfs_linux.go @@ -69,9 +69,6 @@ func setupRootfs(config *configs.Config, console *linuxConsole, pipe io.ReadWrit if err := setupDevSymlinks(config.Rootfs); err != nil { return newSystemErrorWithCause(err, "setting up /dev symlinks") } - if err := label.Relabel(filepath.Join(config.Rootfs, "dev"), config.MountLabel, false); err != nil { - return err - } } // Signal the parent to run the pre-start hooks. // The hooks are run after the mounts are setup, but before we switch to the new