Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name: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)

Proto:struct aa_label *x_table_lookup(struct aa_profile *profile, unsigned int xindex, const char **name)

Type:struct aa_label

Parameter:

TypeParameterName
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  When Not label && name cycle
523  If new_profile Then label = label
525  Continue
527  label = aa_label_parse( & label, * name, GFP_KERNEL, true, false)
529  If IS_ERR(label) Then label = NULL
535  Return label
Caller
NameDescribe
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