函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_label_snxprint - print a label name to a string buffer*@str: buffer to write to

函数原型:int aa_label_snxprint(char *str, size_t size, struct aa_ns *ns, struct aa_label *label, int flags)

返回类型:int

参数:

类型参数名称
char *str
size_tsize
struct aa_ns *ns
struct aa_label *label
intflags
1599  struct aa_ns * prev_ns = NULL
1601  count等于0, total等于0
1604  AA_BUG(!str && size != 0)
1605  AA_BUG(!label)
1607  如果flags按位与FLAG_ABS_ROOT
1608  ns等于 profile namespace
1609  len等于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*@
1610  helper macro for snprint routines (total, len, size, str)
1611  否则如果非ns
1612  ns等于labels_ns(label)
1617  如果count大于0则
1625  count自加
1629  如果count恒等于0则
1630  如果flags按位与FLAG_HIDDEN_UNCONFINED则返回: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*@
1632  返回: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*@
1638  如果 any visible label is not unconfined the display_mode returns true
1639  len等于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*@
1641  helper macro for snprint routines (total, len, size, str)
1644  返回:total
调用者
名称描述
aa_getprocattraa_getprocattr - Return the profile information for @profile*@profile: the profile to print profile info about (NOT NULL)*@string: Returns - string containing the profile info (NOT NULL)* Returns: length of @string on success else error on failure*
apparmor_secid_to_secctx
aa_label_asxprintaa_label_asxprint - allocate a string buffer and print label into it*@strp: Returns - the allocated buffer with the label name
aa_label_acntsxprintaa_label_acntsxprint - allocate a __counted string buffer and print label*@strp: buffer to write to