libcontainer to manage /dev and /proc (#4945)

libcontainer already manages `/dev`, overriding task_dir - so let's use it for `/proc` as well and remove deadcode.
This commit is contained in:
Mahmood Ali
2018-12-03 10:41:01 -05:00
committed by GitHub
parent 8261f3ebf7
commit 813f0a2282
7 changed files with 7 additions and 182 deletions

View File

@@ -496,6 +496,12 @@ func configureIsolation(cfg *lconfigs.Config, command *ExecCommand) {
Flags: syscall.MS_NOSUID | syscall.MS_STRICTATIME,
Data: "mode=755",
},
{
Source: "proc",
Destination: "/proc",
Device: "proc",
Flags: defaultMountFlags,
},
{
Source: "devpts",
Destination: "/dev/pts",