| 函数逻辑报告 | 
| Source Code: security\apparmor\domain.c | Create Date:2022-07-27 21:30:50 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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
函数原型: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)
返回类型:struct aa_label
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| 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 | 退出 | 
| 566 | 当:xtype恒等于use a specified name ->n# | 
| 569 | 如果stack不等于'&'则 | 
| 576 | 当:xtype恒等于use executable name px | 
| 585 | lookupname等于name | 
| 586 | 退出 | 
| 589 | 如果非new则 | 
| 607 | new等于aa_label_parse(base, stack, GFP_KERNEL, true, false) | 
| 610 | aa_put_label(base) | 
| 614 | 返回:new | 
| 名称 | 描述 | 
|---|---|
| profile_transition | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |