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: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
Proto:bool aa_label_replace(struct aa_label *old, struct aa_label *new)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct aa_label * | old | |
struct aa_label * | new |
771 | write_lock_irqsave( & lock, flags) |
772 | If proxy != proxy Then __proxy_share(old, new) |
774 | Else quires profile list write lock held |
777 | write_unlock_irqrestore( & lock, flags) |
778 | Else |
780 | ls = labels_set(old) |
782 | write_lock_irqsave( & lock, flags) |
785 | write_unlock_irqrestore( & lock, flags) |
786 | ls = labels_set(new) |
787 | write_lock_irqsave( & lock, flags) |
791 | write_unlock_irqrestore( & lock, flags) |
792 | aa_put_label(l) |
795 | Return res |
Name | Describe |
---|---|
__replace_profile | __replace_profile - replace @old with @new on a list*@old: profile to be replaced (NOT NULL)*@new: profile to replace @old with (NOT NULL)*@share_proxy: transfer @old->proxy to @new* Will duplicate and refcount elements that @new inherits from @old |
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 |