Function report |
Source Code:security\apparmor\domain.c |
Create Date:2022-07-28 19:51:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:helper fn for change_hat* Returns: label for hat transition OR ERR_PTR. Does NOT return NULL
Proto:static struct aa_label *build_change_hat(struct aa_profile *profile, const char *name, bool sibling)
Type:struct aa_label
Parameter:
Type | Parameter | Name |
---|---|---|
struct aa_profile * | profile | |
const char * | name | |
bool | sibling |
1002 | struct aa_profile * root, * hat = NULL |
1003 | const char * info = NULL |
1004 | error = 0 |
1006 | If sibling && PROFILE_IS_HAT(profile) Then |
1008 | Else if Not sibling && Not PROFILE_IS_HAT(profile) Then |
1010 | Else |
1016 | hat = aa_find_child - find a profile by @name in @parent*@parent: profile to search (NOT NULL)*@name: profile name to search for (NOT NULL)* Returns: a refcounted profile or NULL if not found |
1017 | If Not hat Then |
1019 | If COMPLAIN_MODE(profile) Then |
1030 | audit : |
1040 | Return label |
Name | Describe |
---|---|
change_hat | helper fn for changing into a hat* Returns: label for hat transition or ERR_PTR. Does not return NULL |
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 |