Lines 1950-1959
static int lxcContainerSetupPivotRoot(virDomainDefPtr vmDef,
Link Here
|
1950 |
if (lxcContainerMountBasicFS(true, sec_mount_options) < 0) |
1950 |
if (lxcContainerMountBasicFS(true, sec_mount_options) < 0) |
1951 |
goto cleanup; |
1951 |
goto cleanup; |
1952 |
|
1952 |
|
1953 |
/* Mounts /proc/meminfo etc sysinfo */ |
|
|
1954 |
if (lxcContainerMountProcFuse(vmDef, "/.oldroot") < 0) |
1955 |
goto cleanup; |
1956 |
|
1957 |
/* Now we can re-mount the cgroups controllers in the |
1953 |
/* Now we can re-mount the cgroups controllers in the |
1958 |
* same configuration as before */ |
1954 |
* same configuration as before */ |
1959 |
if (lxcContainerMountCGroups(mounts, nmounts, |
1955 |
if (lxcContainerMountCGroups(mounts, nmounts, |
Lines 2058-2067
static int lxcContainerSetupExtraMounts(virDomainDefPtr vmDef,
Link Here
|
2058 |
if (lxcContainerMountBasicFS(false, sec_mount_options) < 0) |
2054 |
if (lxcContainerMountBasicFS(false, sec_mount_options) < 0) |
2059 |
goto cleanup; |
2055 |
goto cleanup; |
2060 |
|
2056 |
|
2061 |
/* Mounts /proc/meminfo etc sysinfo */ |
|
|
2062 |
if (lxcContainerMountProcFuse(vmDef, NULL) < 0) |
2063 |
goto cleanup; |
2064 |
|
2065 |
/* Now we can re-mount the cgroups controllers in the |
2057 |
/* Now we can re-mount the cgroups controllers in the |
2066 |
* same configuration as before */ |
2058 |
* same configuration as before */ |
2067 |
if (lxcContainerMountCGroups(mounts, nmounts, |
2059 |
if (lxcContainerMountCGroups(mounts, nmounts, |