函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_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*

函数原型:int aa_getprocattr(struct aa_label *label, char **string)

返回类型:int

参数:

类型参数名称
struct aa_label *label
char **string
35  ns等于labels_ns(label)
36  current_ns等于aa_get_current_ns()
39  如果非aa_ns_visible(current_ns, ns, true)则
40  aa_put_ns - decrement refcount on @ns*@ns: namespace to put reference of* Decrement reference count of @ns and if no longer in use free it
41  返回:负EACCES
44  len等于aa_label_snxprint(NULL, 0, current_ns, label, FLAG_SHOW_MODE | FLAG_VIEW_SUBNS | FLAG_HIDDEN_UNCONFINED)
47  AA_BUG(len < 0)
49  string等于开辟内存
50  如果非string
51  aa_put_ns - decrement refcount on @ns*@ns: namespace to put reference of* Decrement reference count of @ns and if no longer in use free it
52  返回:负ENOMEM
55  len等于aa_label_snxprint( * string, len + 2, current_ns, label, FLAG_SHOW_MODE | FLAG_VIEW_SUBNS | FLAG_HIDDEN_UNCONFINED)
58  如果len小于0则
59  aa_put_ns - decrement refcount on @ns*@ns: namespace to put reference of* Decrement reference count of @ns and if no longer in use free it
60  返回:len
63  ) = '\n'
64  ) = 0
66  aa_put_ns - decrement refcount on @ns*@ns: namespace to put reference of* Decrement reference count of @ns and if no longer in use free it
67  返回:len加1
调用者
名称描述
apparmor_getprocattr