Lines Matching full:snum
4727 unsigned short snum; in selinux_socket_bind() local
4760 snum = ntohs(addr4->sin_port); in selinux_socket_bind()
4767 snum = ntohs(addr6->sin6_port); in selinux_socket_bind()
4776 ad.u.net->sport = htons(snum); in selinux_socket_bind()
4779 if (snum) { in selinux_socket_bind()
4784 if (inet_port_requires_bind_service(sock_net(sk), snum) || in selinux_socket_bind()
4785 snum < low || snum > high) { in selinux_socket_bind()
4787 snum, &sid); in selinux_socket_bind()
4876 unsigned short snum; in selinux_socket_connect_helper() local
4889 snum = ntohs(addr4->sin_port); in selinux_socket_connect_helper()
4895 snum = ntohs(addr6->sin6_port); in selinux_socket_connect_helper()
4907 err = sel_netport_sid(sk->sk_protocol, snum, &sid); in selinux_socket_connect_helper()
4925 ad.u.net->dport = htons(snum); in selinux_socket_connect_helper()