函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_ipc_permission - Smack access for ipc_permission()*@ipp: the object permissions*@flag: access requested* Returns 0 if current has read and write access, error code otherwise

函数原型:static int smack_ipc_permission(struct kern_ipc_perm *ipp, short flag)

返回类型:int

参数:

类型参数名称
struct kern_ipc_perm *ipp
shortflag
3228  blob等于smack_ipc(ipp)
3229  iskp等于blob
3230  may等于smack_flags_to_may - convert S_ to MAY_ values*@flags: the S_ value* Returns the equivalent MAY_ value
3235  some inline functions to set up audit data* they do nothing if CONFIG_AUDIT is not set
3236  ipc_id等于id
3238  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
3239  rc等于smk_bu_current("svipc", iskp, may, rc)
3240  返回:rc