mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
e65d4cac66
(This is a cherry-pick of ebcef3e651e61aeee96546301d8db9e92b505ce6.) It turns out that the error added in commit09822c3da8("configs: disallow ambiguous userns and timens configurations") causes issues with containerd and CRIO because they pass both userns mappings and a userns path. These configurations are broken, but to avoid the regression in this one case, output a warning to tell the user that the configuration is incorrect but we will continue to use it if and only if the configured mappings are identical to the mappings of the provided namespace. Fixes:09822c3da8("configs: disallow ambiguous userns and timens configurations") Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>