/* Set the security data for a kernel service.  */
static int smack_kernel_act_as(struct cred *new, u32 secid)
/* Set the security data for a kernel service.  */
static int smack_kernel_act_as(struct cred *new, u32 secid)
{
	char *smack = smack_from_secid(secid);
	if (smack == NULL)
		return -EINVAL;
	new->security = smack;
	return 0;
}