函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Note, at this point, sma is locked down

函数原型:static int selinux_sem_semctl(struct kern_ipc_perm *sma, int cmd)

返回类型:int

参数:

类型参数名称
struct kern_ipc_perm *sma
intcmd
6203  :cmd恒等于see ipcs
6204  :cmd恒等于SEM_INFO
6206  返回:avc_has_perm - Check permissions and perform any appropriate auditing
6209  :cmd恒等于get sempid
6210  :cmd恒等于get semncnt
6211  :cmd恒等于get semzcnt
6212  perms等于SEM__GETATTR
6213  退出
6214  :cmd恒等于get semval
6215  :cmd恒等于get all semval's
6216  perms等于SEM__READ
6217  退出
6218  :cmd恒等于set semval
6219  :cmd恒等于set all semval's
6220  perms等于SEM__WRITE
6221  退出
6222  :cmd恒等于move resource
6223  perms等于SEM__DESTROY
6224  退出
6225  :cmd恒等于set ipc_perm options
6226  perms等于SEM__SETATTR
6227  退出
6228  :cmd恒等于get ipc_perm options
6229  :cmd恒等于pcs ctl cmds
6230  :cmd恒等于SEM_STAT_ANY
6231  perms等于SEM__GETATTR按位或SEM__ASSOCIATE
6232  退出
6233  默认
6234  返回:0
6237  err等于ipc_has_perm(sma, perms)
6238  返回:err