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_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:
| Type | Parameter | Name |
|---|---|---|
| struct aa_label * | label | |
| struct aa_label * | new |
| 565 | ls = labels_set(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 |
| 583 | Return false |
| Name | Describe |
|---|---|
| aa_label_remove | aa_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_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 |
| aa_labelset_destroy | aa_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 |
| 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 |