函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\util.c Create Date:2022-07-27 18:15:01
Last Modify:2022-05-23 18:05:07 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static int ipc_check_perms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, const struct ipc_ops *ops, struct ipc_params *params)

返回类型:int

参数:

类型参数名称
struct ipc_namespace *ns
struct kern_ipc_perm *ipcp
const struct ipc_ops *ops
struct ipc_params *params
371  如果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_err等于负EACCES
373  否则
374  err等于associate(ipcp, flg)
375  如果非errerr等于id
379  返回:err
调用者
名称描述
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()