Lines Matching refs:rules

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