/* Description: Set the default NetLabel configuration to allow incoming unlabeled packets and to send unlabeled network traffic by default.  */
int __init netlbl_unlabel_defconf(void)
/* Description: Set the default NetLabel configuration to allow incoming unlabeled packets and to send unlabeled network traffic by default.  */
int __init netlbl_unlabel_defconf(void)
{
	int ret_val;
	struct netlbl_dom_map *entry;
	struct netlbl_audit audit_info;
	security_task_getsecid(current, &audit_info.secid);
	audit_info.loginuid = 0;
	audit_info.sessionid = 0;
	entry = kzalloc(sizeof(*entry), GFP_KERNEL);
	if (entry == NULL)
		return -ENOMEM;
	entry->type = NETLBL_NLTYPE_UNLABELED;
	ret_val = netlbl_domhsh_add_default(entry, &audit_info);
	if (ret_val != 0)
		return ret_val;
	netlbl_unlabel_acceptflg_set(1, &audit_info);
	return 0;
}