Lines Matching refs:profile
178 void aa_add_profile(struct aa_policy *common, struct aa_profile *profile);
186 void aa_free_profile(struct aa_profile *profile);
220 static inline unsigned int PROFILE_MEDIATES(struct aa_profile *profile, in PROFILE_MEDIATES() argument
224 return profile->policy.start[class]; in PROFILE_MEDIATES()
226 return aa_dfa_match_len(profile->policy.dfa, in PROFILE_MEDIATES()
227 profile->policy.start[0], &class, 1); in PROFILE_MEDIATES()
230 static inline unsigned int PROFILE_MEDIATES_AF(struct aa_profile *profile, in PROFILE_MEDIATES_AF() argument
232 unsigned int state = PROFILE_MEDIATES(profile, AA_CLASS_NET); in PROFILE_MEDIATES_AF()
237 return aa_dfa_match_len(profile->policy.dfa, state, (char *) &be_af, 2); in PROFILE_MEDIATES_AF()
300 static inline int AUDIT_MODE(struct aa_profile *profile) in AUDIT_MODE() argument
305 return profile->audit; in AUDIT_MODE()