def permitted_info_attributes(info_layer_name, permissions):
    """Get permitted attributes for a feature info result layer.

    :param str info_layer_name: Layer name from feature info result
    :param obj permissions: OGC service permissions
    """
    # get WMS layer name for info result layer
    wms_layer_name = permissions.get('feature_info_aliases', {}) \
        .get(info_layer_name, info_layer_name)

    # return permitted attributes for layer
    return permissions['layers'].get(wms_layer_name, {})