Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\lib.c Create Date:2022-07-28 19:50:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs, unsigned int mask)

Type:void

Parameter:

TypeParameterName
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  When i < num_chrs cycle
209  If mask & perm Then
211  If WARN_ON_ONCE(str_size <= 1) Then Break
214  str++ = chrs[i]
215  str_size--
218  str = '\0'
Caller
NameDescribe
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