函数逻辑报告 |
Source Code:security\apparmor\apparmorfs.c |
Create Date:2022-07-27 21:24:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Requires: @profile->ns->lock held
函数原型:int __aafs_profile_mkdir(struct aa_profile *profile, struct dentry *parent)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct aa_profile * | profile | |
struct dentry * | parent |
1707 | 如果非parent则 |
1709 | p等于aa_deref_parent(profile) |
1712 | dent等于aafs_create_dir - create a directory in the apparmorfs filesystem*@name: name of dentry to create*@parent: parent directory for this dentry* see aafs_create |
1715 | prof_child_dir(p)等于parent等于dent |
1718 | 如果非dirname则 |
1724 | 如果非dirname则 |
1730 | 输出格式化串 |
1733 | dent等于aafs_create_dir - create a directory in the apparmorfs filesystem*@name: name of dentry to create*@parent: parent directory for this dentry* see aafs_create |
1738 | dent等于create_profile_file(dir, "name", profile, & seq_profile_name_fops) |
1742 | dents[AAFS_PROF_NAME]等于dent |
1744 | dent等于create_profile_file(dir, "mode", profile, & seq_profile_mode_fops) |
1748 | dents[AAFS_PROF_MODE]等于dent |
1750 | dent等于create_profile_file(dir, "attach", profile, & seq_profile_attach_fops) |
1754 | dents[AAFS_PROF_ATTACH]等于dent |
1756 | 如果hash则 |
1757 | dent等于create_profile_file(dir, "sha1", profile, & seq_profile_hash_fops) |
1761 | dents[AAFS_PROF_HASH]等于dent |
1764 | 如果rawdata则 |
1770 | aa_get_proxy(proxy) |
1771 | dents[AAFS_PROF_RAW_HASH]等于dent |
1778 | aa_get_proxy(proxy) |
1779 | dents[AAFS_PROF_RAW_ABI]等于dent |
1786 | aa_get_proxy(proxy) |
1787 | dents[AAFS_PROF_RAW_DATA]等于dent |
1796 | 返回:0 |
1798 | fail : |
1801 | fail2 : |
1804 | 返回:error |
名称 | 描述 |
---|---|
__aafs_profile_mkdir | Requires: @profile->ns->lock held |
__aafs_ns_mkdir | Requires: @ns->lock held |
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 插件可实现:逻辑报告 代码生成和批量转换代码 |