函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_profile_snxprint - print a profile name to a buffer*@str: buffer to write to

函数原型: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)

返回类型:int

参数:

类型参数名称
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  如果非viewview等于profiles_ns(profile)
1496  如果view不等于ns且非prev_nsprev_ns不等于ns的值则
1498  如果prev_nsprev_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  如果ns_name恒等于aa_hidden_ns_name
1509  如果flags按位与FLAG_SHOW_MODEprofile不等于unconfined
1510  modestr等于aa_profile_mode_names[mode]
1512  如果ns_name则返回: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  返回: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  如果ns_name则返回: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  返回: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*@
调用者
名称描述
aa_label_snxprintaa_label_snxprint - print a label name to a string buffer*@str: buffer to write to