/* Return 0 if the current subject can write to the destination host. This is only a question if the destination is a single label host.  */
static int smack_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)
/* Return 0 if the current subject can write to the destination host. This is only a question if the destination is a single label host.  */
static int smack_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)
{
	struct sockaddr_in *sip = (struct sockaddr_in *) msg->msg_name;
	if (sip == NULL || sip->sin_family != AF_INET)
		return 0;
	return smack_netlabel_send(sock->sk, sip);
}