/* Casey says that CIPSO is good enough for now. It can be used to effect. It can also be abused to effect when necessary. Appologies to the TSIG group in general and GW in particular.  */
static void smack_to_secattr(char *smack, struct netlbl_lsm_secattr *nlsp)
/* Casey says that CIPSO is good enough for now. It can be used to effect. It can also be abused to effect when necessary. Appologies to the TSIG group in general and GW in particular.  */
static void smack_to_secattr(char *smack, struct netlbl_lsm_secattr *nlsp)
{
	struct smack_cipso cipso;
	int rc;
	nlsp->domain = smack;
	nlsp->flags = NETLBL_SECATTR_DOMAIN | NETLBL_SECATTR_MLS_LVL;
	rc = smack_to_cipso(smack, &cipso);
	if (rc == 0) {
		nlsp->attr.mls.lvl = cipso.smk_level;
		smack_set_catset(cipso.smk_catset, nlsp);
	} else {
		nlsp->attr.mls.lvl = smack_cipso_direct;
		smack_set_catset(smack, nlsp);
	}
}