Temporary forked from
https://github.com/opencontainers/runc/pull/1692