Commit f4eebb1
committed
[cexec] Bind mount existing sources:
Instead of creating new mounts from special
filesystems for the chroot, we bind mount
the existing locations for /dev, /sys, /proc.
Creating a new mount point using devtmpfs is
not recommended as it can cause issues and conflicts
with /dev. Especially when we created the devtmpfs
mount point as read only. This caused the host system's
/dev to change to read only as well.
Signed-off-by: Jacob Weinstock <[email protected]>1 parent 6861e4a commit f4eebb1
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
228 | 231 | | |
229 | 232 | | |
230 | | - | |
| 233 | + | |
231 | 234 | | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
235 | 238 | | |
236 | | - | |
| 239 | + | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
242 | | - | |
| 245 | + | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
| |||
0 commit comments