aa_ext
bool aa_inbounds(struct aa_ext *e, size_t size);
size_t aa_unpack_u16_chunk(struct aa_ext *e, char **chunk);
bool aa_unpack_X(struct aa_ext *e, enum aa_code code);
bool aa_unpack_nameX(struct aa_ext *e, enum aa_code code, const char *name);
bool aa_unpack_u32(struct aa_ext *e, u32 *data, const char *name);
bool aa_unpack_u64(struct aa_ext *e, u64 *data, const char *name);
bool aa_unpack_array(struct aa_ext *e, const char *name, u16 *size);
size_t aa_unpack_blob(struct aa_ext *e, char **blob, const char *name);
int aa_unpack_str(struct aa_ext *e, const char **string, const char *name);
int aa_unpack_strdup(struct aa_ext *e, char **string, const char *name);
static struct aa_profile *unpack_profile(struct aa_ext *e, char **ns_name)
static int verify_header(struct aa_ext *e, int required, const char **ns)
struct aa_ext e = {
VISIBLE_IF_KUNIT bool aa_inbounds(struct aa_ext *e, size_t size)
VISIBLE_IF_KUNIT size_t aa_unpack_u16_chunk(struct aa_ext *e, char **chunk)
VISIBLE_IF_KUNIT bool aa_unpack_X(struct aa_ext *e, enum aa_code code)
VISIBLE_IF_KUNIT bool aa_unpack_nameX(struct aa_ext *e, enum aa_code code, const char *name)
static bool unpack_u8(struct aa_ext *e, u8 *data, const char *name)
VISIBLE_IF_KUNIT bool aa_unpack_u32(struct aa_ext *e, u32 *data, const char *name)
VISIBLE_IF_KUNIT bool aa_unpack_u64(struct aa_ext *e, u64 *data, const char *name)
static bool aa_unpack_cap_low(struct aa_ext *e, kernel_cap_t *data, const char *name)
static bool aa_unpack_cap_high(struct aa_ext *e, kernel_cap_t *data, const char *name)
VISIBLE_IF_KUNIT bool aa_unpack_array(struct aa_ext *e, const char *name, u16 *size)
VISIBLE_IF_KUNIT size_t aa_unpack_blob(struct aa_ext *e, char **blob, const char *name)
VISIBLE_IF_KUNIT int aa_unpack_str(struct aa_ext *e, const char **string, const char *name)
VISIBLE_IF_KUNIT int aa_unpack_strdup(struct aa_ext *e, char **string, const char *name)
static struct aa_dfa *unpack_dfa(struct aa_ext *e, int flags)
static int unpack_strs_table(struct aa_ext *e, const char *name, bool multi,
static bool unpack_xattrs(struct aa_ext *e, struct aa_profile *profile)
static bool unpack_secmark(struct aa_ext *e, struct aa_ruleset *rules)
const char *name, const char *info, struct aa_ext *e,
static bool unpack_rlimits(struct aa_ext *e, struct aa_ruleset *rules)
static int unpack_tagsets(struct aa_ext *e, struct aa_tags_struct *tags)
static bool unpack_tag_header_ent(struct aa_ext *e, struct aa_tags_header *h)
static int unpack_tag_headers(struct aa_ext *e, struct aa_tags_struct *tags)
static int unpack_tags(struct aa_ext *e, struct aa_tags_struct *tags,
static bool unpack_perm(struct aa_ext *e, u32 version, struct aa_perms *perm)
static ssize_t unpack_perms_table(struct aa_ext *e, struct aa_perms **perms)
static int unpack_pdb(struct aa_ext *e, struct aa_policydb **policy,
struct aa_ext *e;
static struct aa_ext *build_aa_ext_struct(struct policy_unpack_fixture *puf,
struct aa_ext *e;