#StackBounty: #linux #file-permissions #shared-memory shm_open not setting group write access

Bounty: 50

I am creating a new shared memory object like so

  int fd = shm_open("somekey", O_CREAT | O_RDWR, S_IRWXU | S_IRWXG);

The return value is fine and I expect to find something like the following in /dev/shm

-rwxrwx--- 1 root   group     4096 Jun 27 19:08 somekey

but instead the write access in the files are missing and I don’t know why.

-rwxr-x--- 1 root   group     4096 Jun 27 19:08 somekey


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.