Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_mangle_name - mangle a profile name to std profile layout form*@name: profile name to mangle (NOT NULL)*@target: buffer to store mangled name, same length as @name (MAYBE NULL)* Returns: length of mangled name

Proto:static int mangle_name(const char *name, char *target)

Type:int

Parameter:

TypeParameterName
const char *name
char *target
107  t = target
109  When name == '/' || name == '.' cycle
110  name++
112  If target Then
113  When name cycle
114  If name == '/' Then *t++ = '.'
122  t = 0
123  Else
124  len = 0
125  When name cycle
131  Return len
134  Return t - target
Caller
NameDescribe
__aafs_profile_mkdirRequires: @profile->ns->lock held