Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct kern_ipc_perm *isp
intcmd
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
3077  may = MAY_READ
3078  Break
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
3085  Case cmd == see ipcs
3086  Case cmd == SEM_INFO
3090  Return 0
3091  Default
3092  Return -EINVAL
3095  Return 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