qemu_acl *qemu_acl_init(const char *aclname) { qemu_acl *acl; acl = qemu_acl_find(aclname); if (acl) return acl; acl = qemu_malloc(sizeof(*acl)); acl->aclname = qemu_strdup(aclname); /* Deny by default, so there is no window of "open * access" between QEMU starting, and the user setting * up ACLs in the monitor */ acl->defaultDeny = 1; acl->nentries = 0; TAILQ_INIT(&acl->entries); acls = qemu_realloc(acls, sizeof(*acls) * (nacls +1)); acls[nacls] = acl; nacls++; return acl; }