函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smk_curacc_msq : helper to check if current has access on msq*@isp : the msq*@access : access requested* return 0 if current has access, error otherwise

函数原型:static int smk_curacc_msq(struct kern_ipc_perm *isp, int access)

返回类型:int

参数:

类型参数名称
struct kern_ipc_perm *isp
intaccess
3124  msp等于smack_of_ipc - the smack pointer for the ipc*@isp: the object* Returns a pointer to the smack value
3129  some inline functions to set up audit data* they do nothing if CONFIG_AUDIT is not set
3130  ipc_id等于id
3132  rc等于smk_curacc - determine if current has a specific access to an object*@obj_known: a pointer to the object's Smack label entry*@mode: the access requested, in "MAY" format*@a : common audit data* This function checks the current subject label/object label
3133  rc等于smk_bu_current("msq", msp, access, rc)
3134  返回:rc
调用者
名称描述
smack_msg_queue_associatesmack_msg_queue_associate - Smack access check for msg_queue*@isp: the object*@msqflg: access requested* Returns 0 if current has the requested access, error code otherwise
smack_msg_queue_msgctlsmack_msg_queue_msgctl - Smack access check for msg_queue*@isp: the object*@cmd: what it wants to do* Returns 0 if current has the requested access, error code otherwise
smack_msg_queue_msgsndsmack_msg_queue_msgsnd - Smack access check for msg_queue*@isp: the object*@msg: unused*@msqflg: access requested* Returns 0 if current has the requested access, error code otherwise
smack_msg_queue_msgrcvsmack_msg_queue_msgsnd - Smack access check for msg_queue*@isp: the object*@msg: unused*@target: unused*@type: unused*@mode: unused* Returns 0 if current has read and write access, error code otherwise