Lines Matching refs:state
94 bool stack, aa_state_t state) in match_component() argument
100 state = aa_dfa_match(rules->file->dfa, state, "&"); in match_component()
102 return aa_dfa_match(rules->file->dfa, state, tp->base.hname); in match_component()
106 state = aa_dfa_match_len(rules->file->dfa, state, ":", 1); in match_component()
107 state = aa_dfa_match(rules->file->dfa, state, ns_name); in match_component()
108 state = aa_dfa_match_len(rules->file->dfa, state, ":", 1); in match_component()
109 return aa_dfa_match(rules->file->dfa, state, tp->base.hname); in match_component()
130 aa_state_t state, bool subns, u32 request, in label_compound_match() argument
142 state = match_component(profile, tp, stack, state); in label_compound_match()
143 if (!state) in label_compound_match()
156 state = aa_dfa_match(rules->file->dfa, state, "//&"); in label_compound_match()
157 state = match_component(profile, tp, false, state); in label_compound_match()
158 if (!state) in label_compound_match()
161 *perms = *(aa_lookup_condperms(current_fsuid(), rules->file, state, in label_compound_match()
200 aa_state_t state = 0; in label_components_match() local
206 state = match_component(profile, tp, stack, start); in label_components_match()
207 if (!state) in label_components_match()
216 tmp = *(aa_lookup_condperms(current_fsuid(), rules->file, state, in label_components_match()
223 state = match_component(profile, tp, stack, start); in label_components_match()
224 if (!state) in label_components_match()
226 tmp = *(aa_lookup_condperms(current_fsuid(), rules->file, state, in label_components_match()
255 bool stack, aa_state_t state, bool subns, u32 request, in label_match() argument
261 error = label_compound_match(profile, label, stack, state, subns, in label_match()
267 return label_components_match(profile, label, stack, state, subns, in label_match()
312 struct aa_profile *profile, aa_state_t state) in aa_xattrs_match() argument
325 state = aa_dfa_outofband_transition(attach->xmatch->dfa, state); in aa_xattrs_match()
339 state = aa_dfa_null_transition(attach->xmatch->dfa, in aa_xattrs_match()
340 state); in aa_xattrs_match()
342 state = aa_dfa_match_len(attach->xmatch->dfa, state, in aa_xattrs_match()
344 perms = aa_lookup_perms(attach->xmatch, state); in aa_xattrs_match()
351 state = aa_dfa_outofband_transition(attach->xmatch->dfa, state); in aa_xattrs_match()
358 if (!state) { in aa_xattrs_match()
422 aa_state_t state; in find_attach() local
425 state = aa_dfa_leftmatch(attach->xmatch->dfa, in find_attach()
428 perms = aa_lookup_perms(attach->xmatch, state); in find_attach()
443 state); in find_attach()
669 aa_state_t state = rules->file->start[AA_CLASS_FILE]; in profile_transition() local
719 state = aa_str_perms(rules->file, state, name, cond, &perms); in profile_transition()
799 aa_state_t state = rules->file->start[AA_CLASS_FILE]; in profile_onexec() local
832 state = aa_str_perms(rules->file, state, xname, cond, &perms); in profile_onexec()
841 state = aa_dfa_null_transition(rules->file->dfa, state); in profile_onexec()
843 state, &perms); in profile_onexec()