Lines Matching refs:policy
165 int aa_do_perms(struct aa_profile *profile, struct aa_policydb *policy, in aa_do_perms() argument
172 AA_BUG(!policy); in aa_do_perms()
176 p = aa_lookup_perms(policy, state); in aa_do_perms()
188 static struct aa_perms *early_match(struct aa_policydb *policy, in early_match() argument
193 p = aa_lookup_perms(policy, state); in early_match()
224 aa_state_t aa_match_to_prot(struct aa_policydb *policy, aa_state_t state, in aa_match_to_prot() argument
228 state = aa_dfa_match_be16(policy->dfa, state, (u16)af); in aa_match_to_prot()
233 state = aa_dfa_match_be16(policy->dfa, state, (u16)type); in aa_match_to_prot()
236 *p = early_match(policy, state, request); in aa_match_to_prot()
238 state = aa_dfa_match_be16(policy->dfa, state, (u16)protocol); in aa_match_to_prot()
267 state = aa_match_to_prot(rules->policy, state, request, family, type, in aa_profile_af_perm()
269 return aa_do_perms(profile, rules->policy, state, request, p, ad); in aa_profile_af_perm()