In SharedMemory::createHandle() we can receive ReadOnly as protection parameter. We are creating the shared memory as read-write by default, and when creating a handle we duplicate the file descriptor that inherits the flags.