Revert "sim: change ownership to user ID of the calling process for shm file"

This reverts commit 03c1496e8e.
This commit is contained in:
Jiuzhu Dong 2021-07-29 23:01:08 +08:00
parent cf41dee0f6
commit 20ff96a58d

View file

@ -92,8 +92,6 @@ void *host_alloc_shmem(const char *name, size_t size, int master)
return NULL;
}
fchown(fd, getuid(), getgid());
if (!master)
{
/* Avoid the second slave instance open successfully */