Set minimal permissions to temp files (#148899)
Updated changelog