函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-27 20:52:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static int smack_sem_semctl(struct kern_ipc_perm *isp, int cmd)

返回类型:int

参数:

类型参数名称
struct kern_ipc_perm *isp
intcmd
3069  :cmd恒等于get sempid
3070  :cmd恒等于get semncnt
3071  :cmd恒等于get semzcnt
3072  :cmd恒等于get semval
3073  :cmd恒等于get all semval's
3074  :cmd恒等于get ipc_perm options
3075  :cmd恒等于pcs ctl cmds
3076  :cmd恒等于SEM_STAT_ANY
3077  may等于MAY_READ
3078  退出
3079  :cmd恒等于set semval
3080  :cmd恒等于set all semval's
3081  :cmd恒等于move resource
3082  :cmd恒等于set ipc_perm options
3083  may等于MAY_READWRITE
3084  退出
3085  :cmd恒等于see ipcs
3086  :cmd恒等于SEM_INFO
3090  返回:0
3091  默认
3092  返回:负EINVAL
3095  返回:smk_curacc_sem : check if current has access on sem*@isp : the object*@access : access requested* Returns 0 if current has the requested access, error code otherwise