| Function report | 
| Source Code: security\apparmor\policy.c | Create Date:2022-07-28 19:52:03 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:aa_remove_profiles - remove profile(s) from the system*@policy_ns: namespace the remove is being done from*@subj: label attempting to remove policy*@fqname: name of the profile or namespace to remove (NOT NULL)*@size: size of the name* Remove a profile or
Proto:ssize_t aa_remove_profiles(struct aa_ns *policy_ns, struct aa_label *subj, char *fqname, size_t size)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct aa_ns * | policy_ns | |
| struct aa_label * | subj | |
| char * | fqname | |
| size_t | size | 
| 1098 | struct aa_profile * profile = NULL | 
| 1100 | const char * ns_name = NULL | 
| 1101 | error = 0 | 
| 1103 | If fqname == 0 Then | 
| 1109 | If fqname[0] == ':' Then | 
| 1116 | If Not ns Then | 
| 1125 | If Not name Then | 
| 1127 | mutex_lock_nested( & lock, level) | 
| 1128 | __aa_bump_ns_revision(ns) | 
| 1131 | Else | 
| 1133 | mutex_lock_nested( & lock, level) | 
| 1135 | If Not profile Then | 
| 1141 | __aa_bump_ns_revision(ns) | 
| 1152 | Return size | 
| 1154 | fail_ns_lock : | 
| 1158 | fail : | 
| 1161 | Return error | 
| Name | Describe | 
|---|---|
| profile_remove | .remove file hook fn to remove loaded policy | 
| 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 |