Code review changes (security fix for file handle permissions) for release-23-wikiv2