int qemu_acl_party_is_allowed(qemu_acl *acl,

                              const char *party)

{

    qemu_acl_entry *entry;



    TAILQ_FOREACH(entry, &acl->entries, next) {

#ifdef CONFIG_FNMATCH

        if (fnmatch(entry->match, party, 0) == 0)

            return entry->deny ? 0 : 1;

#else

        /* No fnmatch, so fallback to exact string matching

         * instead of allowing wildcards */

        if (strcmp(entry->match, party) == 0)

            return entry->deny ? 0 : 1;

#endif

    }



    return acl->defaultDeny ? 0 : 1;

}

int qemu_acl_party_is_allowed(qemu_acl *acl,

                              const char *party)

{

    qemu_acl_entry *entry;



    TAILQ_FOREACH(entry, &acl->entries, next) {

#ifdef CONFIG_FNMATCH

        if (fnmatch(entry->match, party, 0) == 0)

            return entry->deny ? 0 : 1;

#else

        



        if (strcmp(entry->match, party) == 0)

            return entry->deny ? 0 : 1;

#endif

    }



    return acl->defaultDeny ? 0 : 1;

}

int FUNC_0(qemu_acl *VAR_0,

                              const char *VAR_1)

{

    qemu_acl_entry *entry;



    TAILQ_FOREACH(entry, &VAR_0->entries, next) {

#ifdef CONFIG_FNMATCH

        if (fnmatch(entry->match, VAR_1, 0) == 0)

            return entry->deny ? 0 : 1;

#else

        



        if (strcmp(entry->match, VAR_1) == 0)

            return entry->deny ? 0 : 1;

#endif

    }



    return VAR_0->defaultDeny ? 0 : 1;

}

int FUNC_0(qemu_acl *VAR_0,
const char *VAR_1)
{ qemu_acl_entry *entry; TAILQ_FOREACH(entry, &VAR_0->entries, next) { #ifdef CONFIG_FNMATCH
if (fnmatch(entry->match, VAR_1, 0) == 0)
return entry->deny ? 0 : 1; #else
if (strcmp(entry->match, VAR_1) == 0)
return entry->deny ? 0 : 1; #endif
} return VAR_0->defaultDeny ? 0 : 1; }