This function returns am_resource_match_t with one of the following values:
If both the resource names exactly matched.
If the resourceName is a sub-resource to the resource name defined in the policy.
If the resourcName is a ancestor of the policy resource name.
If the there is no kind of match between the policy resource and the requested resource name.
This result will be returned only if the policy is matches resource name. Distinction is not made whether it was a EXACT_MATCH or a pattern match.