Lines Matching refs:state
166 aa_state_t state, u32 request, in aa_do_perms() argument
175 if (state || !p) in aa_do_perms()
176 p = aa_lookup_perms(policy, state); in aa_do_perms()
189 aa_state_t state, u32 request) in early_match() argument
193 p = aa_lookup_perms(policy, state); in early_match()
199 static aa_state_t aa_dfa_match_be16(struct aa_dfa *dfa, aa_state_t state, in aa_dfa_match_be16() argument
204 return aa_dfa_match_len(dfa, state, (char *) &buffer, 2); in aa_dfa_match_be16()
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()
229 if (!state) { in aa_match_to_prot()
231 return state; in aa_match_to_prot()
233 state = aa_dfa_match_be16(policy->dfa, state, (u16)type); in aa_match_to_prot()
234 if (state) { 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()
239 if (!state) in aa_match_to_prot()
246 return state; in aa_match_to_prot()
256 aa_state_t state; in aa_profile_af_perm() local
264 state = RULE_MEDIATES_NET(rules); in aa_profile_af_perm()
265 if (!state) in aa_profile_af_perm()
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()