函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:x_table_lookup - lookup an x transition name via transition table*@profile: current profile (NOT NULL)*@xindex: index into x transition table*@name: returns: name tested to find label (NOT NULL)* Returns: refcounted label, or NULL on failure (MAYBE NULL)

函数原型:struct aa_label *x_table_lookup(struct aa_profile *profile, unsigned int xindex, const char **name)

返回类型:struct aa_label

参数:

类型参数名称
struct aa_profile *profile
unsigned intxindex
const char **name
507  struct aa_label * label = NULL
508  xtype等于xindex按位与AA_X_TYPE_MASK
509  index等于xindex按位与The xindex is broken into 3 parts* - index - an index into either the exec name table or the variable table* - exec type - which determines how the executable name and index are used* - flags - which modify how the destination name is applied
511  AA_BUG(!name)
517  以非labelname循环
523  如果new_profilelabel等于label
525  继续下一循环
527  label等于aa_label_parse( & label, * name, GFP_KERNEL, true, false)
529  如果是错误label = NULL
535  返回:label
调用者
名称描述
x_to_labelx_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