Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_profile_snxprint - print a profile name to a buffer*@str: buffer to write to

Proto:static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, struct aa_profile *profile, int flags, struct aa_ns **prev_ns)

Type:int

Parameter:

TypeParameterName
char *str
size_tsize
struct aa_ns *view
struct aa_profile *profile
intflags
struct aa_ns **prev_ns
1488  const char * ns_name = NULL
1490  AA_BUG(!str && size != 0)
1491  AA_BUG(!profile)
1493  If Not view Then view = profiles_ns(profile)
1496  If view != ns && ( Not prev_ns || prev_ns != ns ) Then
1498  If prev_ns Then prev_ns = ns
1500  ns_name = aa_na_name - Find the ns name to display for @view from @curr*@curr - current namespace (NOT NULL)*@view - namespace attempting to view (NOT NULL)*@subns - are subns visible* Returns: name of @view visible from @curr
1502  If ns_name == aa_hidden_ns_name Then
1509  If flags & FLAG_SHOW_MODE && profile != unconfined Then
1510  modestr = aa_profile_mode_names[mode]
1512  If ns_name Then Return snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
1515  Return snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
1519  If ns_name Then Return snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
1522  Return snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
Caller
NameDescribe
aa_label_snxprintaa_label_snxprint - print a label name to a string buffer*@str: buffer to write to