Function report |
Source Code:ipc\util.c |
Create Date:2022-07-28 16:40:01 |
| Last Modify:2022-05-23 18:05:07 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto: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)
Type:struct kern_ipc_perm
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ipc_namespace * | ns | |
| struct ipc_ids * | ids | |
| int | id | |
| int | cmd | |
| struct ipc64_perm * | perm | |
| int | extra_perm |
| 702 | audit_ipc_obj(ipcp) |
| 703 | If cmd == set ipc_perm options Then audit_ipc_set_perm(extra_perm, uid, gid, mode) |
| 707 | euid = current_euid() |
| 708 | If uid_eq(euid, cuid) || uid_eq(euid, uid) || ns_capable(user_ns, Allow setting zone reclaim policy ) Then Return ipcp |
| 711 | err : |
| Name | Describe |
|---|---|
| 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. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |