• Home
  • Raw
  • Download

Lines Matching refs:state

99 					   bool stack, unsigned int state)  in match_component()  argument
104 state = aa_dfa_match(profile->file.dfa, state, "&"); in match_component()
106 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component()
110 state = aa_dfa_match_len(profile->file.dfa, state, ":", 1); in match_component()
111 state = aa_dfa_match(profile->file.dfa, state, ns_name); in match_component()
112 state = aa_dfa_match_len(profile->file.dfa, state, ":", 1); in match_component()
113 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component()
134 unsigned int state, bool subns, u32 request, in label_compound_match() argument
145 state = match_component(profile, tp, stack, state); in label_compound_match()
146 if (!state) in label_compound_match()
159 state = aa_dfa_match(profile->file.dfa, state, "//&"); in label_compound_match()
160 state = match_component(profile, tp, false, state); in label_compound_match()
161 if (!state) in label_compound_match()
164 *perms = aa_compute_fperms(profile->file.dfa, state, &cond); in label_compound_match()
201 unsigned int state = 0; in label_components_match() local
207 state = match_component(profile, tp, stack, start); in label_components_match()
208 if (!state) in label_components_match()
217 tmp = aa_compute_fperms(profile->file.dfa, state, &cond); 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_compute_fperms(profile->file.dfa, state, &cond); in label_components_match()
254 bool stack, unsigned int state, bool subns, u32 request, in label_match() argument
260 error = label_compound_match(profile, label, stack, state, subns, in label_match()
266 return label_components_match(profile, label, stack, state, subns, in label_match()
310 struct aa_profile *profile, unsigned int state) in aa_xattrs_match() argument
323 state = aa_dfa_null_transition(profile->xmatch, state); in aa_xattrs_match()
334 state = aa_dfa_match_len(profile->xmatch, state, value, in aa_xattrs_match()
336 perm = dfa_user_allow(profile->xmatch, state); in aa_xattrs_match()
343 state = aa_dfa_null_transition(profile->xmatch, state); in aa_xattrs_match()
350 if (!state) { in aa_xattrs_match()
411 unsigned int state, count; in find_attach() local
414 state = aa_dfa_leftmatch(profile->xmatch, DFA_START, in find_attach()
416 perm = dfa_user_allow(profile->xmatch, state); in find_attach()
431 state); in find_attach()
626 unsigned int state = profile->file.start; in profile_transition() local
660 state = aa_str_perms(profile->file.dfa, state, name, cond, &perms); in profile_transition()
678 if (aa_xattrs_match(bprm, component, state) < in profile_transition()
748 unsigned int state = profile->file.start; in profile_onexec() local
781 state = aa_str_perms(profile->file.dfa, state, xname, cond, &perms); in profile_onexec()
790 state = aa_dfa_null_transition(profile->file.dfa, state); in profile_onexec()
792 state, &perms); in profile_onexec()