函数逻辑报告 |
Source Code:ipc\util.c |
Create Date:2022-07-27 18:15:19 |
| Last Modify:2022-05-23 18:05:07 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 | |
| int | id | |
| int | cmd | |
| struct ipc64_perm * | perm | |
| int | extra_perm |
| 697 | 如果是错误则 |
| 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_down | This 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_down | This 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_down | This 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. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |