/* Transfer the connection's peer label to the newly created socket.  */
static void smack_inet_csk_clone(struct sock *sk, const struct request_sock *req)
/* Transfer the connection's peer label to the newly created socket.  */
static void smack_inet_csk_clone(struct sock *sk, const struct request_sock *req)
{
	struct socket_smack *ssp = sk->sk_security;
	char *smack;
	if (req->peer_secid != 0) {
		smack = smack_from_secid(req->peer_secid);
		strncpy(ssp->smk_packet, smack, SMK_MAXLEN);
	} else
		ssp->smk_packet[0] = '\0';
}