Lines Matching refs:profile
174 void aa_add_profile(struct aa_policy *common, struct aa_profile *profile);
182 void aa_free_profile(struct aa_profile *profile);
216 static inline unsigned int PROFILE_MEDIATES(struct aa_profile *profile, in PROFILE_MEDIATES() argument
220 return profile->policy.start[class]; in PROFILE_MEDIATES()
222 return aa_dfa_match_len(profile->policy.dfa, in PROFILE_MEDIATES()
223 profile->policy.start[0], &class, 1); in PROFILE_MEDIATES()
226 static inline unsigned int PROFILE_MEDIATES_AF(struct aa_profile *profile, in PROFILE_MEDIATES_AF() argument
228 unsigned int state = PROFILE_MEDIATES(profile, AA_CLASS_NET); in PROFILE_MEDIATES_AF()
233 return aa_dfa_match_len(profile->policy.dfa, state, (char *) &be_af, 2); in PROFILE_MEDIATES_AF()
296 static inline int AUDIT_MODE(struct aa_profile *profile) in AUDIT_MODE() argument
301 return profile->audit; in AUDIT_MODE()