函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_str_from_perm : helper to transalate an int to a* readable string*@string : the string to fill*@access : the int

函数原型:static inline void smack_str_from_perm(char *string, int access)

返回类型:void

参数:

类型参数名称
char *string
intaccess
289  i等于0
291  如果access按位与MAY_READstring[i++]等于'r'
293  如果access按位与MAY_WRITEstring[i++]等于'w'
295  如果access按位与MAY_EXECstring[i++]等于'x'
297  如果access按位与MAY_APPENDstring[i++]等于'a'
299  如果access按位与Controls directory labeling string[i++]等于't'
301  如果access按位与Locks should be writes, but ... string[i++]等于'l'
303  string[i]等于'\0'
调用者
名称描述
smack_logsmack_log - Audit the granting or denial of permissions