Lines Matching refs:dfa
196 static unsigned int match_mnt_flags(struct aa_dfa *dfa, unsigned int state, in match_mnt_flags() argument
203 state = aa_dfa_next(dfa, state, i + 1); in match_mnt_flags()
216 static struct aa_perms compute_mnt_perms(struct aa_dfa *dfa, in compute_mnt_perms() argument
220 .allow = dfa_user_allow(dfa, state), in compute_mnt_perms()
221 .audit = dfa_user_audit(dfa, state), in compute_mnt_perms()
222 .quiet = dfa_user_quiet(dfa, state), in compute_mnt_perms()
223 .xindex = dfa_user_xindex(dfa, state), in compute_mnt_perms()
242 static int do_match_mnt(struct aa_dfa *dfa, unsigned int start, in do_match_mnt() argument
249 AA_BUG(!dfa); in do_match_mnt()
252 state = aa_dfa_match(dfa, start, mntpnt); in do_match_mnt()
253 state = aa_dfa_null_transition(dfa, state); in do_match_mnt()
258 state = aa_dfa_match(dfa, state, devname); in do_match_mnt()
259 state = aa_dfa_null_transition(dfa, state); in do_match_mnt()
264 state = aa_dfa_match(dfa, state, type); in do_match_mnt()
265 state = aa_dfa_null_transition(dfa, state); in do_match_mnt()
269 state = match_mnt_flags(dfa, state, flags); in do_match_mnt()
272 *perms = compute_mnt_perms(dfa, state); in do_match_mnt()
278 state = aa_dfa_null_transition(dfa, state); in do_match_mnt()
282 state = aa_dfa_match(dfa, state, data); in do_match_mnt()
285 *perms = compute_mnt_perms(dfa, state); in do_match_mnt()
347 pos = do_match_mnt(profile->policy.dfa, in match_mnt_path_str()
575 state = aa_dfa_match(profile->policy.dfa, in profile_umount()
578 perms = compute_mnt_perms(profile->policy.dfa, state); in profile_umount()
641 state = aa_dfa_match(profile->policy.dfa, in build_pivotroot()
644 state = aa_dfa_null_transition(profile->policy.dfa, state); in build_pivotroot()
645 state = aa_dfa_match(profile->policy.dfa, state, old_name); in build_pivotroot()
646 perms = compute_mnt_perms(profile->policy.dfa, state); in build_pivotroot()