Lines Matching refs:rules

84 	struct aa_ruleset *rules = list_first_entry(&profile->rules,  in match_component()  local
85 typeof(*rules), list); in match_component()
89 state = aa_dfa_match(rules->file.dfa, state, "&"); in match_component()
91 return aa_dfa_match(rules->file.dfa, state, tp->base.hname); in match_component()
95 state = aa_dfa_match_len(rules->file.dfa, state, ":", 1); in match_component()
96 state = aa_dfa_match(rules->file.dfa, state, ns_name); in match_component()
97 state = aa_dfa_match_len(rules->file.dfa, state, ":", 1); in match_component()
98 return aa_dfa_match(rules->file.dfa, state, tp->base.hname); in match_component()
122 struct aa_ruleset *rules = list_first_entry(&profile->rules, in label_compound_match() local
123 typeof(*rules), list); in label_compound_match()
146 state = aa_dfa_match(rules->file.dfa, state, "//&"); in label_compound_match()
151 *perms = *(aa_lookup_fperms(&(rules->file), state, &cond)); in label_compound_match()
184 struct aa_ruleset *rules = list_first_entry(&profile->rules, in label_components_match() local
185 typeof(*rules), list); in label_components_match()
206 tmp = *(aa_lookup_fperms(&(rules->file), state, &cond)); in label_components_match()
215 tmp = *(aa_lookup_fperms(&(rules->file), state, &cond)); in label_components_match()
508 struct aa_ruleset *rules = list_first_entry(&profile->rules, in x_table_lookup() local
509 typeof(*rules), list); in x_table_lookup()
520 for (*name = rules->file.trans.table[index]; !label && *name; in x_table_lookup()
559 struct aa_ruleset *rules = list_first_entry(&profile->rules, in x_to_label() local
560 typeof(*rules), list); in x_to_label()
573 stack = rules->file.trans.table[xindex & AA_X_INDEX_MASK]; in x_to_label()
627 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_transition() local
628 typeof(*rules), list); in profile_transition()
631 aa_state_t state = rules->file.start[AA_CLASS_FILE]; in profile_transition()
665 state = aa_str_perms(&(rules->file), state, name, cond, &perms); in profile_transition()
727 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_onexec() local
728 typeof(*rules), list); in profile_onexec()
729 aa_state_t state = rules->file.start[AA_CLASS_FILE]; in profile_onexec()
762 state = aa_str_perms(&(rules->file), state, xname, cond, &perms); in profile_onexec()
771 state = aa_dfa_null_transition(rules->file.dfa, state); in profile_onexec()
1268 struct aa_ruleset *rules = list_first_entry(&profile->rules, in change_profile_perms_wrapper() local
1269 typeof(*rules), list); in change_profile_perms_wrapper()
1275 rules->file.start[AA_CLASS_FILE], in change_profile_perms_wrapper()