/* Returns number of bytes read or error code, as appropriate  */
static ssize_t smk_read_onlycap(struct file *filp, char __user *buf, size_t cn, loff_t *ppos)
/* Returns number of bytes read or error code, as appropriate  */
static ssize_t smk_read_onlycap(struct file *filp, char __user *buf, size_t cn, loff_t *ppos)
{
	char *smack = "";
	ssize_t rc = -EINVAL;
	int asize;
	if (*ppos != 0)
		return 0;
	if (smack_onlycap != NULL)
		smack = smack_onlycap;
	asize = strlen(smack) + 1;
	if (cn >= asize)
		rc = simple_read_from_buffer(buf, cn, ppos, smack, asize);
	return rc;
}