函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_perm_mask_to_str - convert a perm mask to its short string*@str: character buffer to store string in (at least 10 characters)*@str_size: size of the @str buffer*@chrs: NUL-terminated character buffer of permission characters*@mask: permission mask to

函数原型:void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs, unsigned int mask)

返回类型:void

参数:

类型参数名称
char *str
size_tstr_size
const char *chrs
unsigned intmask
205  perm等于1
206  num_chrs等于strlen - Find the length of a string*@s: The string to be sized
208 i小于num_chrs循环
209  如果mask按位与perm
211  如果WARN_ON_ONCE(str_size <= 1)则退出
214  str自加等于chrs[i]
215  str_size自减
218  str等于'\0'
调用者
名称描述
aa_audit_perm_mask
audit_file_maskaudit_file_mask - convert mask to permission string*@buffer: buffer to write string to (NOT NULL)*@mask: permission mask to convert