kaniko (and other docker build tools) require permission to change file ownership to successfully build containers.
i'm leaving this here for consideration, not sure about this security wise,, the better solution would be to use kvm, i think. in our case docker is running in sysbox without privileged: true so it should be fine(??)
As far as I can tell this only works for Kaniko I haven't had much success getting podman or buildah to work. but from a security perspective, I agree, these should be safe. the ones to watch out for are CAP_SYS_ADMIN and SYS_MODULE