gvisor/runsc/container
Fabricio Voznika f3ffa4db52 Resolve mount paths while setting up root fs mount
It's hard to resolve symlinks inside the sandbox because rootfs and mounts
may be read-only, forcing us to create mount points inside lower layer of an
overlay, **before** the volumes are mounted.

Since the destination must already be resolved outside the sandbox when creating
mounts, take this opportunity to rewrite the spec with paths resolved.
"runsc boot" will use the "resolved" spec to load mounts. In addition, symlink
traversals were disabled while mounting containers inside the sandbox.

It haven't been able to write a good test for it. So I'm relying on manual tests
for now.

PiperOrigin-RevId: 217749904
Change-Id: I7ac434d5befd230db1488446cda03300cc0751a9
2018-10-18 12:42:24 -07:00
..
BUILD runsc: Support job control signals for the root container. 2018-10-17 12:29:05 -07:00
console_test.go Relativize all socket paths in tests. 2018-10-17 14:11:30 -07:00
container.go Resolve mount paths while setting up root fs mount 2018-10-18 12:42:24 -07:00
container_test.go Resolve mount paths while setting up root fs mount 2018-10-18 12:42:24 -07:00
fs.go Resolve mount paths while setting up root fs mount 2018-10-18 12:42:24 -07:00
fs_test.go
hook.go
multi_container_test.go runsc: Add --pid flag to runsc kill. 2018-10-17 10:51:39 -07:00
status.go
test_app.go runsc: Add --pid flag to runsc kill. 2018-10-17 10:51:39 -07:00