Function report | 
Source Code:security\apparmor\apparmorfs.c | 
Create Date:2022-07-28 19:50:03 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Requires: @profile->ns->lock held
Proto:int __aafs_profile_mkdir(struct aa_profile *profile, struct dentry *parent)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct aa_profile * | profile | |
| struct dentry * | parent | 
| 1705 | AA_BUG(!mutex_is_locked( & lock)) | 
| 1707 | If Not parent Then | 
| 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 | If Not dirname Then | 
| 1723 | dirname = Allocation memory | 
| 1724 | If Not dirname Then | 
| 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 | If hash Then | 
| 1757 | dent = create_profile_file(dir, "sha1", profile, & seq_profile_hash_fops) | 
| 1761 | dents[AAFS_PROF_HASH] = dent | 
| 1764 | If rawdata Then | 
| 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 | Return 0 | 
| 1798 | fail : | 
| 1801 | fail2 : | 
| 1804 | Return error | 
| Name | Describe | 
|---|---|
| __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 | 
| 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  |