Lines Matching refs:spp
2332 struct smk_port_label *spp; in smack_sk_free_security() local
2336 list_for_each_entry_rcu(spp, &smk_ipv6_port_list, list) { in smack_sk_free_security()
2337 if (spp->smk_sock != sk) in smack_sk_free_security()
2339 spp->smk_can_reuse = 1; in smack_sk_free_security()
2612 struct smk_port_label *spp; in smk_ipv6_port_label() local
2622 list_for_each_entry_rcu(spp, &smk_ipv6_port_list, list) { in smk_ipv6_port_label()
2623 if (sk != spp->smk_sock) in smk_ipv6_port_label()
2625 spp->smk_in = ssp->smk_in; in smk_ipv6_port_label()
2626 spp->smk_out = ssp->smk_out; in smk_ipv6_port_label()
2651 list_for_each_entry_rcu(spp, &smk_ipv6_port_list, list) { in smk_ipv6_port_label()
2652 if (spp->smk_port != port || spp->smk_sock_type != sock->type) in smk_ipv6_port_label()
2654 if (spp->smk_can_reuse != 1) { in smk_ipv6_port_label()
2658 spp->smk_port = port; in smk_ipv6_port_label()
2659 spp->smk_sock = sk; in smk_ipv6_port_label()
2660 spp->smk_in = ssp->smk_in; in smk_ipv6_port_label()
2661 spp->smk_out = ssp->smk_out; in smk_ipv6_port_label()
2662 spp->smk_can_reuse = 0; in smk_ipv6_port_label()
2670 spp = kzalloc(sizeof(*spp), GFP_KERNEL); in smk_ipv6_port_label()
2671 if (spp == NULL) in smk_ipv6_port_label()
2674 spp->smk_port = port; in smk_ipv6_port_label()
2675 spp->smk_sock = sk; in smk_ipv6_port_label()
2676 spp->smk_in = ssp->smk_in; in smk_ipv6_port_label()
2677 spp->smk_out = ssp->smk_out; in smk_ipv6_port_label()
2678 spp->smk_sock_type = sock->type; in smk_ipv6_port_label()
2679 spp->smk_can_reuse = 0; in smk_ipv6_port_label()
2682 list_add_rcu(&spp->list, &smk_ipv6_port_list); in smk_ipv6_port_label()
2698 struct smk_port_label *spp; in smk_ipv6_port_check() local
2736 list_for_each_entry_rcu(spp, &smk_ipv6_port_list, list) { in smk_ipv6_port_check()
2737 if (spp->smk_port != port || spp->smk_sock_type != sk->sk_type) in smk_ipv6_port_check()
2739 object = spp->smk_in; in smk_ipv6_port_check()
2741 ssp->smk_packet = spp->smk_out; in smk_ipv6_port_check()