函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_shm_associate - Smack access check for shm*@isp: the object*@shmflg: access requested* Returns 0 if current has the requested access, error code otherwise

函数原型:static int smack_shm_associate(struct kern_ipc_perm *isp, int shmflg)

返回类型:int

参数:

类型参数名称
struct kern_ipc_perm *isp
intshmflg
2964  may等于smack_flags_to_may - convert S_ to MAY_ values*@flags: the S_ value* Returns the equivalent MAY_ value
2965  返回: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