#include "hdm_allowlist.h"

uint8_t check_permission(TEEC_UUID *ta_name) {
        uint32_t i = 0;
        uint8_t ret = false;

        for (i = 0; i < (sizeof(hdm_allowlist) / sizeof(TEE_UUID)); i++) {
                if (!uuid_compare(ta_name, &hdm_allowlist[i])) {
                        HDM_LOG("command allow");
                        return true;
                }
        }
        return ret;
}
