| Function report | 
| Source Code: security\apparmor\procattr.c | Create Date:2022-07-28 19:52:24 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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*
Proto:int aa_getprocattr(struct aa_label *label, char **string)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct aa_label * | label | |
| char ** | string | 
| 36 | current_ns = aa_get_current_ns() | 
| 39 | If Not aa_ns_visible(current_ns, ns, true) Then | 
| 41 | Return -EACCES | 
| 44 | len = aa_label_snxprint(NULL, 0, current_ns, label, FLAG_SHOW_MODE | FLAG_VIEW_SUBNS | FLAG_HIDDEN_UNCONFINED) | 
| 49 | string = Allocation memory | 
| 50 | If Not string Then | 
| 52 | Return -ENOMEM | 
| 55 | len = aa_label_snxprint( * string, len + 2, current_ns, label, FLAG_SHOW_MODE | FLAG_VIEW_SUBNS | FLAG_HIDDEN_UNCONFINED) | 
| 58 | If len < 0 Then | 
| 60 | Return len | 
| 63 | ) = '\n' | 
| 64 | ) = 0 | 
| 67 | Return len + 1 | 
| Name | Describe | 
|---|---|
| apparmor_getprocattr | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |