Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smack_str_from_perm : helper to transalate an int to a* readable string*@string : the string to fill*@access : the int

Proto:static inline void smack_str_from_perm(char *string, int access)

Type:void

Parameter:

TypeParameterName
char *string
intaccess
289  i = 0
291  If access & MAY_READ Then string[i++] = 'r'
293  If access & MAY_WRITE Then string[i++] = 'w'
295  If access & MAY_EXEC Then string[i++] = 'x'
297  If access & MAY_APPEND Then string[i++] = 'a'
299  If access & Controls directory labeling Then string[i++] = 't'
301  If access & Locks should be writes, but ... Then string[i++] = 'l'
303  string[i] = '\0'
Caller
NameDescribe
smack_logsmack_log - Audit the granting or denial of permissions