You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rootfs: make pivot_root not use a temporary directory
Namely, use an undocumented feature of pivot_root(2) where
pivot_root(".", ".") is actually a feature and allows you to make the
old_root be tied to your /proc/self/cwd in a way that makes unmounting
easy. Thanks a lot to the LXC developers which came up with this idea
first.
This is the first step of many to allowing runC to work with a
completely read-only rootfs.
Signed-off-by: Aleksa Sarai <[email protected]>
Copy file name to clipboardExpand all lines: libcontainer/configs/config.go
-5Lines changed: 0 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -85,11 +85,6 @@ type Config struct {
85
85
// that the parent process dies.
86
86
ParentDeathSignalint`json:"parent_death_signal"`
87
87
88
-
// PivotDir allows a custom directory inside the container's root filesystem to be used as pivot, when NoPivotRoot is not set.
89
-
// When a custom PivotDir not set, a temporary dir inside the root filesystem will be used. The pivot dir needs to be writeable.
90
-
// This is required when using read only root filesystems. In these cases, a read/writeable path can be (bind) mounted somewhere inside the root filesystem to act as pivot.
91
-
PivotDirstring`json:"pivot_dir"`
92
-
93
88
// Path to a directory containing the container's root filesystem.
0 commit comments