Lines Matching refs:policy
84 static aa_state_t match_to_local(struct aa_policydb *policy, in match_to_local() argument
91 state = aa_match_to_prot(policy, state, request, PF_UNIX, type, in match_to_local()
94 state = match_addr(policy->dfa, state, addr, addrlen); in match_to_local()
97 state = aa_dfa_null_transition(policy->dfa, state); in match_to_local()
122 static aa_state_t match_to_sk(struct aa_policydb *policy, in match_to_sk() argument
130 return match_to_local(policy, state, request, u->sk.sk_type, in match_to_sk()
138 static aa_state_t match_to_cmd(struct aa_policydb *policy, aa_state_t state, in match_to_cmd() argument
145 state = match_to_sk(policy, state, request, u, p, info); in match_to_cmd()
147 state = aa_dfa_match_len(policy->dfa, state, &cmd, 1); in match_to_cmd()
155 static aa_state_t match_to_peer(struct aa_policydb *policy, aa_state_t state, in match_to_peer() argument
162 state = match_to_cmd(policy, state, request, u, CMD_ADDR, p, info); in match_to_peer()
164 state = match_addr(policy->dfa, state, peer_addr, peer_addrlen); in match_to_peer()
184 state = aa_dfa_match(rule->policy->dfa, state, in match_label()
191 return aa_do_perms(profile, rule->policy, state, request, p, ad); in match_label()
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()
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()
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()
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()
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()
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()
415 state = match_to_peer(rules->policy, state, request, in profile_peer_perm()