Lines Matching refs:dfa
183 * @dfa: dfa to match against
193 static unsigned int match_mnt_flags(struct aa_dfa *dfa, unsigned int state,
200 state = aa_dfa_next(dfa, state, i + 1);
208 * @dfa: dfa to match against (NOT NULL)
213 static struct aa_perms compute_mnt_perms(struct aa_dfa *dfa,
217 .allow = dfa_user_allow(dfa, state),
218 .audit = dfa_user_audit(dfa, state),
219 .quiet = dfa_user_quiet(dfa, state),
220 .xindex = dfa_user_xindex(dfa, state),
240 static int do_match_mnt(struct aa_dfa *dfa, unsigned int start,
247 AA_BUG(!dfa);
250 state = aa_dfa_match(dfa, start, mntpnt);
251 state = aa_dfa_null_transition(dfa, state);
256 state = aa_dfa_match(dfa, state, devname);
257 state = aa_dfa_null_transition(dfa, state);
262 state = aa_dfa_match(dfa, state, type);
263 state = aa_dfa_null_transition(dfa, state);
267 state = match_mnt_flags(dfa, state, flags);
270 *perms = compute_mnt_perms(dfa, state);
276 state = aa_dfa_null_transition(dfa, state);
280 state = aa_dfa_match(dfa, state, data);
283 *perms = compute_mnt_perms(dfa, state);
345 pos = do_match_mnt(profile->policy.dfa,
602 state = aa_dfa_match(profile->policy.dfa,
605 perms = compute_mnt_perms(profile->policy.dfa, state);
671 state = aa_dfa_match(profile->policy.dfa,
674 state = aa_dfa_null_transition(profile->policy.dfa, state);
675 state = aa_dfa_match(profile->policy.dfa, state, old_name);
676 perms = compute_mnt_perms(profile->policy.dfa, state);