Function report |
Source Code:security\apparmor\label.c |
Create Date:2022-07-28 19:54:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__label_insert - attempt to insert @l into a label set*@ls: set of labels to insert @l into (NOT NULL)*@label: new label to insert (NOT NULL)*@replace: whether insertion should replace existing entry that is not stale* Requires: @ls->lock* caller to hold
Proto:static struct aa_label *__label_insert(struct aa_labelset *ls, struct aa_label *label, bool replace)
Type:struct aa_label
Parameter:
Type | Parameter | Name |
---|---|---|
struct aa_labelset * | ls | |
struct aa_label * | label | |
bool | replace |
642 | AA_BUG(labels_set(label) != ls) |
643 | lockdep_assert_held_write( & lock) |
644 | AA_BUG(flags & label is in tree ) |
650 | result = label_cmp - label comparison for set ordering*@a: label to compare (NOT NULL)*@b: label to compare (NOT NULL)* Returns: <0 if a < b* ==0 if a == b* >0 if a > b |
653 | If result == 0 Then |
659 | If Not replace && Not label_is_stale(this) Then |
662 | Else __proxy_share(this, label) |
665 | Return aa_get_label(label) |
673 | rb_link_node( & node, parent, new) |
674 | rb_insert_color( & node, & root) |
675 | flags |= label is in tree |
677 | Return aa_get_label(label) |
Name | Describe |
---|---|
aa_label_replace | aa_label_replace - replace a label @old with a new version @new*@old: label to replace*@new: label replacing @old* Returns: true if @old was in tree and replaced* else @old was not in tree, and @new was not inserted |
vec_create_and_insert_label | quires sort and merge done first |
aa_label_insert | aa_label_insert - insert label @label into @ls or return existing label*@ls - labelset to insert @label into*@label - label to insert* Requires: caller to hold a valid ref on @label* Returns: ref counted @label if successful in inserting @label* else ref |
label_merge_insert | label_merge_insert - create a new label by merging @a and @b*@new: preallocated label to merge into (NOT NULL)*@a: label to merge with @b (NOT NULL)*@b: label to merge with @a (NOT NULL)* Requires: preallocated proxy* Returns: ref counted label either |
__label_update | __label_update - insert updated version of @label into labelset*@label - the label to update/replace* Returns: new label that is up to date* else NULL on failure* Requires: @ns lock be held* Note: worst case is the stale @label does not get updated and has |
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 |