| Function report | 
| Source Code: security\apparmor\domain.c | Create Date:2022-07-28 19:51:36 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:x_to_label - get target label for a given xindex*@profile: current profile (NOT NULL)*@bprm: binprm structure of transitioning task*@name: name to lookup (NOT NULL)*@xindex: index into x transition table*@lookupname: returns: name used in lookup if one
Proto:static struct aa_label *x_to_label(struct aa_profile *profile, const struct linux_binprm *bprm, const char *name, unsigned int xindex, const char **lookupname, const char **info)
Type:struct aa_label
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct aa_profile * | profile | |
| const struct linux_binprm * | bprm | |
| const char * | name | |
| unsigned int | xindex | |
| const char ** | lookupname | |
| const char ** | info | 
| 558 | xtype = xindex & AA_X_TYPE_MASK | 
| 559 | const char * stack = NULL | 
| 564 | * lookupname = NULL | 
| 565 | Break | 
| 566 | Case xtype == use a specified name ->n# | 
| 569 | If stack != '&' Then | 
| 576 | Case xtype == use executable name px | 
| 585 | lookupname = name | 
| 586 | Break | 
| 589 | If Not new Then | 
| 590 | If xindex & AA_X_INHERIT Then | 
| 594 | info = "ix fallback" | 
| 597 | Else if xindex & AA_X_UNCONFINED Then | 
| 607 | new = aa_label_parse(base, stack, GFP_KERNEL, true, false) | 
| 610 | aa_put_label(base) | 
| 614 | Return new | 
| Name | Describe | 
|---|---|
| profile_transition | 
| 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 |