函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_shm_shmctl - Smack access check for shm*@isp: the object*@cmd: what it wants to do* Returns 0 if current has the requested access, error code otherwise

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

返回类型:int

参数:

类型参数名称
struct kern_ipc_perm *isp
intcmd
2980  :cmd恒等于get ipc_perm options
2981  :cmd恒等于pcs ctl commands
2982  :cmd恒等于SHM_STAT_ANY
2983  may等于MAY_READ
2984  退出
2985  :cmd恒等于set ipc_perm options
2986  :cmd恒等于super user shmctl commands
2987  :cmd恒等于SHM_UNLOCK
2988  :cmd恒等于move resource
2989  may等于MAY_READWRITE
2990  退出
2991  :cmd恒等于see ipcs
2992  :cmd恒等于SHM_INFO
2996  返回:0
2997  默认
2998  返回:负EINVAL
3000  返回:smk_curacc_shm : check if current has access on shm*@isp : the object*@access : access requested* Returns 0 if current has the requested access, error code otherwise