Merge "Fix MMAP stream perm check" into main