函数逻辑报告 |
Source Code:security\apparmor\label.c |
Create Date:2022-07-27 21:44:32 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:bool aa_label_replace(struct aa_label *old, struct aa_label *new)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct aa_label * | old | |
| struct aa_label * | new |
| 771 | write_lock_irqsave( & lock, flags) |
| 772 | 如果proxy不等于proxy则__proxy_share(old, new) |
| 777 | write_unlock_irqrestore( & lock, flags) |
| 778 | 否则 |
| 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 | 返回:res |
| 名称 | 描述 |
|---|---|
| __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 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |