This makes sure that: 1. Already existing directories are left untouched 2. Newly created directories are chowned to the correct root UID/GID in case of user namespaces 3. All parent directories still get created with host root UID/GID Fix #21738 Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com> Upstream-commit: 72d8a77d522896ec73e07f49a1c1bcb44bbf3bbd Component: engine