Pass a mode to os.fdopen in invirt-build-conf and invirt-submit-build.