/* Description: This function queries the currently loaded policy to see if it supports the capability specified by @req_cap. Returns true (1) if the capability is supported, false (0) if it isn't supported.  */
int security_policycap_supported(unsigned int req_cap)
/* Description: This function queries the currently loaded policy to see if it supports the capability specified by @req_cap. Returns true (1) if the capability is supported, false (0) if it isn't supported.  */
int security_policycap_supported(unsigned int req_cap)
{
	int rc;
	read_lock(&policy_rwlock);
	rc = ebitmap_get_bit(&policydb.policycaps, req_cap);
	read_unlock(&policy_rwlock);
	return rc;
}