Function report |
Source Code:security\apparmor\policy_unpack.c |
Create Date:2022-07-28 19:52:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aa_unpack - unpack packed binary profile(s) data loaded from user space*@udata: user data copied to kmem (NOT NULL)*@lh: list to place unpacked profiles in a aa_repl_ws*@ns: Returns namespace profile is in if specified else NULL (NOT NULL)* Unpack user
Proto:int aa_unpack(struct aa_loaddata *udata, struct list_head *lh, const char **ns)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct aa_loaddata * | udata | |
struct list_head * | lh | |
const char ** | ns |
1163 | struct aa_profile * profile = NULL |
1171 | * ns = NULL |
1172 | When pointer to current position in the buffer < end cycle |
1173 | char * ns_name = NULL |
1180 | profile = pack_profile - unpack a serialized profile*@e: serialized data extent information (NOT NULL)* NOTE: unpack profile sets audit struct if there is a failure |
1186 | error = verify_profile - Do post unpack analysis to verify profile consistency*@profile: profile to verify (NOT NULL)* Returns: 0 if passes verification else error |
1187 | If error Then Go to fail_profile |
1190 | If aa_g_hash_policy Then error = aa_calc_profile_hash(profile, version, start, pointer to current position in the buffer - start) |
1193 | If error Then Go to fail_profile |
1196 | ent = aa_load_ent_alloc() |
1197 | If Not ent Then |
1199 | Go to fail_profile |
1206 | abi = version & K_ABI_MASK |
1207 | If aa_g_hash_policy Then |
1215 | error = compress_loaddata(udata) |
1218 | Return 0 |
1220 | fail_profile : |
1223 | fail : |
1226 | aa_load_ent_free(ent) |
1229 | Return error |
Name | Describe |
---|---|
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 |