Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\policy_unpack.c Create Date:2022-07-28 19:52:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pack_dfa - unpack a file rule dfa*@e: serialized data extent information (NOT NULL)* returns dfa or ERR_PTR or NULL if no dfa

Proto:static struct aa_dfa *unpack_dfa(struct aa_ext *e)

Type:struct aa_dfa

Parameter:

TypeParameterName
struct aa_ext *e
444  char * blob = NULL
446  struct aa_dfa * dfa = NULL
448  size = unpack_blob(e, & blob, "aadfa")
449  If size Then
455  sz = blob - start - ( pointer to current position in the buffer - start & 7)
457  pad = @a is a power of 2 value (sz, 8) - sz
458  flags = TO_ACCEPT1_FLAG(YYTD_DATA32) | TO_ACCEPT2_FLAG(YYTD_DATA32) | DFA_FLAG_VERIFY_STATES
460  dfa = aa_dfa_unpack - unpack the binary tables of a serialized dfa*@blob: aligned serialized stream of data to unpack (NOT NULL)*@size: size of data to unpack*@flags: flags controlling what type of accept tables are acceptable
462  If IS_ERR(dfa) Then Return dfa
467  Return dfa
Caller
NameDescribe
unpack_profilepack_profile - unpack a serialized profile*@e: serialized data extent information (NOT NULL)* NOTE: unpack profile sets audit struct if there is a failure