Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__label_remove - remove @label from the label set*@l: label to remove*@new: label to redirect to* Requires: labels_set(@label)->lock write_lock* Returns: true if the label was in the tree and removed

Proto:static bool __label_remove(struct aa_label *label, struct aa_label *new)

Type:bool

Parameter:

TypeParameterName
struct aa_label *label
struct aa_label *new
565  ls = labels_set(label)
567  AA_BUG(!ls)
568  AA_BUG(!label)
569  lockdep_assert_held_write( & lock)
571  If new Then quires profile list write lock held
574  If Not label_is_stale(label) Then __label_make_stale(label)
577  If flags & label is in tree Then
578  rb_erase( & node, & root)
579  flags &= ~ label is in tree
580  Return true
583  Return false
Caller
NameDescribe
aa_label_removeaa_label_remove - remove a label from the labelset*@label: label to remove* Returns: true if @label was removed from the tree* else @label was not in tree so it could not be removed
aa_label_replaceaa_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
aa_labelset_destroyaa_labelset_destroy - remove all labels from the label set*@ls: label set to cleanup (NOT NULL)* Labels that are removed from the set may still exist beyond the set* being destroyed depending on their reference counting
__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