Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 19:01:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Note, at this point, shp is locked down
Proto:static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct kern_ipc_perm * | shp | |
int | cmd |
6124 | Case cmd == get ipc_perm options |
6125 | Case cmd == pcs ctl commands |
6126 | Case cmd == SHM_STAT_ANY |
6127 | perms = SHM__GETATTR | SHM__ASSOCIATE |
6128 | Break |
6129 | Case cmd == set ipc_perm options |
6130 | perms = SHM__SETATTR |
6131 | Break |
6132 | Case cmd == super user shmctl commands |
6133 | Case cmd == SHM_UNLOCK |
6136 | Case cmd == move resource |
6137 | perms = SHM__DESTROY |
6138 | Break |
6139 | Default |
6140 | Return 0 |
6143 | err = ipc_has_perm(shp, perms) |
6144 | 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 |