Commit f71e10a
committed
fix(rootfs): Ensure the container's rootfs has MS_SHARED flag
Ensure that the container's rootfs has the MS_SHARED propagation flag.
THis is necessary in order to propagate any unmounts that might happen
later (e.g. in the case of block-based snapshots which are attached to
the sandbox) in the mount peer groups (i.e. in the initial
mount namespace).
THere is no problem to do that for every rootfs, because reexec will
later cut off the propagation during the preparation of the monitor;s
rootfs.
In the future though, we need to move this up in the shim.
PR: #572
Signed-off-by: Charalampos Mainas <cmainas@nubificus.co.uk>
Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk>
Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>1 parent a1a4d18 commit f71e10a
1 file changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
139 | 163 | | |
140 | 164 | | |
141 | | - | |
| 165 | + | |
142 | 166 | | |
143 | 167 | | |
144 | 168 | | |
| |||
0 commit comments