Check ipc permissions
int ipcperms(struct ipc_namespace * ns, struct kern_ipc_perm * ipcp, short flag);
ns
ipc namespace
ipcp
ipc permission set
flag
desired permission set
Check user, group, other permissions for access to ipc resources. return 0 if allowed
flag will most probably be 0 or S_...UGO from <linux/stat.h>