Lines Matching defs:rules
205 struct aa_ruleset *rules = profile->label.rules[0];
211 state = RULE_MEDIATES_v9NET(rules);
213 state = aa_match_to_prot(rules->policy, state, AA_MAY_CREATE,
217 return aa_do_perms(profile, rules->policy, state, AA_MAY_CREATE,
229 struct aa_ruleset *rules = profile->label.rules[0];
237 state = RULE_MEDIATES_v9NET(rules);
244 state = match_to_sk(rules->policy, state, request, unix_sk(sk),
247 return aa_do_perms(profile, rules->policy, state, request, p,
257 struct aa_ruleset *rules = profile->label.rules[0];
266 state = RULE_MEDIATES_v9NET(rules);
272 state = match_to_local(rules->policy, state, AA_MAY_BIND,
278 return aa_do_perms(profile, rules->policy, state, AA_MAY_BIND,
288 struct aa_ruleset *rules = profile->label.rules[0];
297 state = RULE_MEDIATES_v9NET(rules);
306 state = match_to_cmd(rules->policy, state, AA_MAY_LISTEN,
309 state = aa_dfa_match_len(rules->policy->dfa, state,
314 return aa_do_perms(profile, rules->policy, state, AA_MAY_LISTEN,
325 struct aa_ruleset *rules = profile->label.rules[0];
334 state = RULE_MEDIATES_v9NET(rules);
341 state = match_to_sk(rules->policy, state, AA_MAY_ACCEPT,
344 return aa_do_perms(profile, rules->policy, state, AA_MAY_ACCEPT,
355 struct aa_ruleset *rules = profile->label.rules[0];
364 state = RULE_MEDIATES_v9NET(rules);
372 state = match_to_cmd(rules->policy, state, request, unix_sk(sk),
375 state = aa_dfa_match_len(rules->policy->dfa, state,
380 return aa_do_perms(profile, rules->policy, state, request, p,
395 struct aa_ruleset *rules = profile->label.rules[0];
405 state = RULE_MEDIATES_v9NET(rules);
415 state = match_to_peer(rules->policy, state, request,
420 match_label(profile, rules, state, request,