函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pcctl_obtain_check - retrieve an ipc object and check permissions*@ns: ipc namespace*@ids: the table of ids where to look for the ipc*@id: the id of the ipc to retrieve*@cmd: the cmd to check*@perm: the permission to set*@extra_perm: one extra permission

函数原型:struct kern_ipc_perm *ipcctl_obtain_check(struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm)

返回类型:struct kern_ipc_perm

参数:

类型参数名称
struct ipc_namespace *ns
struct ipc_ids *ids
intid
intcmd
struct ipc64_perm *perm
intextra_perm
693  err等于负EPERM
696  ipcp等于pc_obtain_object_check*@ids: ipc identifier set*@id: ipc id to look for* Similar to ipc_obtain_object_idr() but also checks the ipc object* sequence number.* Call inside the RCU critical section.* The ipc object is *not* locked on exit.
697  如果是错误
698  err等于错误
699  转到:err
702  audit_ipc_obj(ipcp)
703  如果cmd恒等于set ipc_perm options audit_ipc_set_perm(extra_perm, uid, gid, mode)
707  euid等于current_euid()
708  如果uid_eq(euid, cuid)或uid_eq(euid, uid)或ns_capable(user_ns, Allow setting zone reclaim policy )则返回:ipcp
711  err :
712  返回:错误号
调用者
名称描述
msgctl_downThis function handles some msgctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function.
semctl_downThis function handles some semctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function.
shmctl_downThis function handles some shmctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function.