Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\util.c Create Date:2022-07-28 16:39:43
Last Modify:2022-05-23 18:05:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pc_check_perms - check security and permissions for an ipc object*@ns: ipc namespace*@ipcp: ipc permission set*@ops: the actual security routine to call*@params: its parameters* This routine is called by sys_msgget(), sys_semget() and sys_shmget()* when

Proto:static int ipc_check_perms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, const struct ipc_ops *ops, struct ipc_params *params)

Type:int

Parameter:

TypeParameterName
struct ipc_namespace *ns
struct kern_ipc_perm *ipcp
const struct ipc_ops *ops
struct ipc_params *params
371  If pcperms - check ipc permissions*@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_ Then err = -EACCES
373  Else
374  err = associate(ipcp, flg)
375  If Not err Then err = id
379  Return err
Caller
NameDescribe
ipcget_publicpcget_public - get an ipc object or create a new one*@ns: ipc namespace*@ids: ipc identifier set*@ops: the actual creation routine to call*@params: its parameters* This routine is called by sys_msgget, sys_semget() and sys_shmget()