IPC_RMID
Removes the shared memory identifier specified by the SharedMemoryID parameter from the system and
erases the shared memory segment and data structure associated with it. This command is only executed by
a process that has an effective user ID equal either to that of superuser or to the value of the
shm_perm.uid or shm_perm.cuid field in the data structure identified by the SharedMemoryID parameter
IPC_SET
Sets the user and group IDs of the owner as well as the access permissions for the shared memory segment
identified by the SharedMemoryID parameter. This command sets the following fields:
shm_perm.uid /* owning user ID */
shm_perm.gid /* owning group ID */
shm_perm.mode /* permission bits only */