函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd)

返回类型:int

参数:

类型参数名称
struct kern_ipc_perm *shp
intcmd
6118  :cmd恒等于see ipcs
6119  :cmd恒等于SHM_INFO
6121  返回:avc_has_perm - Check permissions and perform any appropriate auditing
6124  :cmd恒等于get ipc_perm options
6125  :cmd恒等于pcs ctl commands
6126  :cmd恒等于SHM_STAT_ANY
6127  perms等于SHM__GETATTR按位或SHM__ASSOCIATE
6128  退出
6129  :cmd恒等于set ipc_perm options
6130  perms等于SHM__SETATTR
6131  退出
6132  :cmd恒等于super user shmctl commands
6133  :cmd恒等于SHM_UNLOCK
6134  perms等于SHM__LOCK
6135  退出
6136  :cmd恒等于move resource
6137  perms等于SHM__DESTROY
6138  退出
6139  默认
6140  返回:0
6143  err等于ipc_has_perm(shp, perms)
6144  返回:err