Lines Matching refs:spp
2438 struct smk_port_label *spp; in smack_sk_free_security() local
2442 list_for_each_entry_rcu(spp, &smk_ipv6_port_list, list) { in smack_sk_free_security()
2443 if (spp->smk_sock != sk) in smack_sk_free_security()
2445 spp->smk_can_reuse = 1; in smack_sk_free_security()
2718 struct smk_port_label *spp; in smk_ipv6_port_label() local
2728 list_for_each_entry_rcu(spp, &smk_ipv6_port_list, list) { in smk_ipv6_port_label()
2729 if (sk != spp->smk_sock) in smk_ipv6_port_label()
2731 spp->smk_in = ssp->smk_in; in smk_ipv6_port_label()
2732 spp->smk_out = ssp->smk_out; in smk_ipv6_port_label()
2757 list_for_each_entry_rcu(spp, &smk_ipv6_port_list, list) { in smk_ipv6_port_label()
2758 if (spp->smk_port != port || spp->smk_sock_type != sock->type) in smk_ipv6_port_label()
2760 if (spp->smk_can_reuse != 1) { in smk_ipv6_port_label()
2764 spp->smk_port = port; in smk_ipv6_port_label()
2765 spp->smk_sock = sk; in smk_ipv6_port_label()
2766 spp->smk_in = ssp->smk_in; in smk_ipv6_port_label()
2767 spp->smk_out = ssp->smk_out; in smk_ipv6_port_label()
2768 spp->smk_can_reuse = 0; in smk_ipv6_port_label()
2776 spp = kzalloc(sizeof(*spp), GFP_KERNEL); in smk_ipv6_port_label()
2777 if (spp == NULL) in smk_ipv6_port_label()
2780 spp->smk_port = port; in smk_ipv6_port_label()
2781 spp->smk_sock = sk; in smk_ipv6_port_label()
2782 spp->smk_in = ssp->smk_in; in smk_ipv6_port_label()
2783 spp->smk_out = ssp->smk_out; in smk_ipv6_port_label()
2784 spp->smk_sock_type = sock->type; in smk_ipv6_port_label()
2785 spp->smk_can_reuse = 0; in smk_ipv6_port_label()
2788 list_add_rcu(&spp->list, &smk_ipv6_port_list); in smk_ipv6_port_label()
2804 struct smk_port_label *spp; in smk_ipv6_port_check() local
2842 list_for_each_entry_rcu(spp, &smk_ipv6_port_list, list) { in smk_ipv6_port_check()
2843 if (spp->smk_port != port || spp->smk_sock_type != sk->sk_type) in smk_ipv6_port_check()
2845 object = spp->smk_in; in smk_ipv6_port_check()
2847 ssp->smk_packet = spp->smk_out; in smk_ipv6_port_check()