Problem: A regular user in pkcs11 group cannot issue pkcsconf -t. When shm_open() creates shared memory object, it honors umask of the caller. This patch ensures the shared memory has expected permissions when it is created.
Problem: A regular user in pkcs11 group cannot issue pkcsconf -t.
When shm_open() creates shared memory object, it honors umask of the
caller. This patch ensures the shared memory has expected permissions
when it is created.

Signed-off-by: Joy Latten <d52cec510126fd47fd8d2fded238791e9e5bd0bf@linux.vnet.ibm.com>

fingunter/OpenCryptoki,joylatten/opencryptoki,joylatten/opencryptoki,joylatten/opencryptoki,joylatten/opencryptoki,fingunter/OpenCryptoki,fingunter/OpenCryptoki,joylatten/opencryptoki,fingunter/OpenCryptoki