/* Return 0 if a subject with the smack of sock could access an object with the smack of other, otherwise an error code  */
static int smack_unix_may_send(struct socket *sock, struct socket *other)
/* Return 0 if a subject with the smack of sock could access an object with the smack of other, otherwise an error code  */
static int smack_unix_may_send(struct socket *sock, struct socket *other)
{
	struct inode *sp = SOCK_INODE(sock);
	struct inode *op = SOCK_INODE(other);
	struct smk_audit_info ad;
	smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_NET);
	smk_ad_setfield_u_net_sk(&ad, other->sk);
	return smk_access(smk_of_inode(sp), smk_of_inode(op), MAY_WRITE, &ad);
}