/* Returns a pointer to the master list entry for the Smack label or NULL if there was no label to fetch.  */
static char* smk_fetch(struct inode *ip, struct dentry *dp)
/* Returns a pointer to the master list entry for the Smack label or NULL if there was no label to fetch.  */
static char* smk_fetch(struct inode *ip, struct dentry *dp)
{
	int rc;
	char in[SMK_LABELLEN];
	if (ip->i_op->getxattr == NULL)
		return NULL;
	rc = ip->i_op->getxattr(dp, XATTR_NAME_SMACK, in, SMK_LABELLEN);
	if (rc < 0)
		return NULL;
	return smk_import(in, rc);
}