fix: update all CDI hooks to fail for invalid container root paths - #2031
fix: update all CDI hooks to fail for invalid container root paths#2031cdesiniotis wants to merge 1 commit into
Conversation
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
|
/cherry-pick release-1.20 |
Coverage Report for CI Build 33128543976Coverage decreased (-0.05%) to 43.585%Details
Uncovered ChangesCoverage Regressions1 previously-covered line in 1 file lost coverage.
Coverage Stats
💛 - Coveralls |
henry118
left a comment
There was a problem hiding this comment.
What about the following?
"//","/.","/foo/.."/container/root->/(link)mount --bind / /container/root(bind mount)
also runc validates the rootfs too, but it does not fail on root though.
https://github.com/opencontainers/runc/blob/cb470207c6f48904e11418a8fef3c37aeb7e482e/libcontainer/configs/validate/validator.go#L55-L72
Fair point. If runc does not fail on nvidia-container-toolkit/internal/oci/state.go Lines 82 to 95 in 7df27d0 The |
|
runc performs the validation when a container is created, before invoking oci hooks. but i am not against the extra validation either, esp if we don't want to depend on runtime's implementation details. |
Agreed |
|
Closing as no longer planned. May open a follow up based on the discussion here. |
No description provided.