Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:22:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smack_sem_shmctl - Smack access check for sem*@isp: the object*@cmd: what it wants to do* Returns 0 if current has the requested access, error code otherwise
Proto:static int smack_sem_semctl(struct kern_ipc_perm *isp, int cmd)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct kern_ipc_perm * | isp | |
int | cmd |
3069 | Case cmd == get sempid |
3070 | Case cmd == get semncnt |
3071 | Case cmd == get semzcnt |
3072 | Case cmd == get semval |
3073 | Case cmd == get all semval's |
3074 | Case cmd == get ipc_perm options |
3075 | Case cmd == pcs ctl cmds |
3076 | Case cmd == SEM_STAT_ANY |
3079 | Case cmd == set semval |
3080 | Case cmd == set all semval's |
3081 | Case cmd == move resource |
3082 | Case cmd == set ipc_perm options |
3083 | may = MAY_READWRITE |
3084 | Break |
3090 | Return 0 |
3091 | Default |
3092 | Return -EINVAL |
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 |