Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 19:01:39 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:selinux_msg_queue_msgctl
Proto:static int selinux_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kern_ipc_perm * | msq | |
| int | cmd |
| 5984 | Case cmd == get ipc_perm options |
| 5985 | Case cmd == pcs ctl commands |
| 5986 | Case cmd == MSG_STAT_ANY |
| 5987 | perms = MSGQ__GETATTR | MSGQ__ASSOCIATE |
| 5988 | Break |
| 5989 | Case cmd == set ipc_perm options |
| 5990 | perms = MSGQ__SETATTR |
| 5991 | Break |
| 5992 | Case cmd == move resource |
| 5993 | perms = MSGQ__DESTROY |
| 5994 | Break |
| 5995 | Default |
| 5996 | Return 0 |
| 5999 | err = ipc_has_perm(msq, perms) |
| 6000 | Return err |
| 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 |