Lines Matching refs:dfa
194 static struct file_perms compute_perms(struct aa_dfa *dfa, unsigned int state, in compute_perms() argument
207 perms.allow = map_old_perms(dfa_user_allow(dfa, state)); in compute_perms()
208 perms.audit = map_old_perms(dfa_user_audit(dfa, state)); in compute_perms()
209 perms.quiet = map_old_perms(dfa_user_quiet(dfa, state)); in compute_perms()
210 perms.xindex = dfa_user_xindex(dfa, state); in compute_perms()
212 perms.allow = map_old_perms(dfa_other_allow(dfa, state)); in compute_perms()
213 perms.audit = map_old_perms(dfa_other_audit(dfa, state)); in compute_perms()
214 perms.quiet = map_old_perms(dfa_other_quiet(dfa, state)); in compute_perms()
215 perms.xindex = dfa_other_xindex(dfa, state); in compute_perms()
220 if (ACCEPT_TABLE(dfa)[state] & 0x80000000) in compute_perms()
222 if (ACCEPT_TABLE(dfa)[state] & 0x40000000) in compute_perms()
238 unsigned int aa_str_perms(struct aa_dfa *dfa, unsigned int start, in aa_str_perms() argument
243 if (!dfa) { in aa_str_perms()
248 state = aa_dfa_match(dfa, start, name); in aa_str_perms()
249 *perms = compute_perms(dfa, state, cond); in aa_str_perms()
298 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, in aa_path_perm()
380 state = aa_str_perms(profile->file.dfa, profile->file.start, lname, in aa_path_link()
387 state = aa_dfa_null_transition(profile->file.dfa, state); in aa_path_link()
388 aa_str_perms(profile->file.dfa, state, tname, &cond, &perms); in aa_path_link()
409 aa_str_perms(profile->file.dfa, profile->file.start, tname, &cond, in aa_path_link()