/* Description: The LSM can use this function to determine if it should use NetLabel security attributes in it's enforcement mechanism. Currently, NetLabel is considered to be enabled when it's configuration contains a valid setup for at least one labeled protocol (i.e. NetLabel can understand incoming labeled packets of at least one type); otherwise NetLabel is considered to be disabled.  */
int netlbl_enabled(void)
/* Description: The LSM can use this function to determine if it should use NetLabel security attributes in it's enforcement mechanism. Currently, NetLabel is considered to be enabled when it's configuration contains a valid setup for at least one labeled protocol (i.e. NetLabel can understand incoming labeled packets of at least one type); otherwise NetLabel is considered to be disabled.  */
int netlbl_enabled(void)
{
	return (atomic_read(&netlabel_mgmt_protocount) > 0);
}