IPCPERMS(9) Kernel IPC facilities IPCPERMS(9)NAMEipcperms - check IPC permissions
SYNOPSIS
int ipcperms(struct ipc_namespace * ns, struct kern_ipc_perm * ipcp,
short flag);
ARGUMENTS
ns
IPC namespace
ipcp
IPC permission set
flag
desired permission set.
DESCRIPTION
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>
COPYRIGHTKernel Hackers Manual 3.11 November 2013 IPCPERMS(9)