I am on an IMX chip running a distro with yocto linux.
In one of my apps, I am calling mq_open with flags O_CREAT | O_RDWR
and mode as
S_IROTH | S_IWOTH | S_IRGRP | S_IWGRP | S_IRUSR | S_IWUSR
However, the actual device node is having permissions:
root@NEW-Board:~# ls -l /dev/mqueue/my-ipc
-rw-r--r-- 1 root root 80 Nov 22 12:34 my-ipc
I would have expected the permissions to be -rw-rw-rw-
. Whats happening here?