函数逻辑报告 |
Source Code:security\apparmor\policy.c |
Create Date:2022-07-27 21:33:23 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__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
函数原型:static void __replace_profile(struct aa_profile *old, struct aa_profile *new)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct aa_profile * | old | |
| struct aa_profile * | new |
| 744 | 如果非链表为空则 |
| 751 | 删除链表项并重新初始化 |
| 753 | 如果p则 |
| 762 | p等于aa_deref_parent(child) |
| 764 | 添加RCU保护项 |
| 770 | parent等于aa_deref_parent(old) |
| 777 | 如果链表为空则 |
| 779 | 更新RCU锁项 |
| 名称 | 描述 |
|---|---|
| __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 |
| aa_replace_profiles | aa_replace_profiles - replace profile(s) on the profile list*@policy_ns: namespace load is occurring on*@label: label that is attempting to load/replace policy*@mask: permission mask*@udata: serialized data stream (NOT NULL)* unpack and replace a profile |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |