Lines Matching refs:id
27 char *start, *id; in read_typeset() local
107 id = calloc(1, len + 1); in read_typeset()
108 if (!id) in read_typeset()
110 memcpy(id, start, len); in read_typeset()
112 printf(" %s", id); in read_typeset()
113 type = hashtab_search(policydb->p_types.table, id); in read_typeset()
116 …err, "Warning! Type or attribute %s used in neverallow undefined in policy being checked.\n", id); in read_typeset()
120 free(id); in read_typeset()
190 char *id, *start; in read_classperms() local
244 id = calloc(1, p - start + 1); in read_classperms()
245 if (!id) in read_classperms()
247 memcpy(id, start, p - start); in read_classperms()
249 printf(" %s", id); in read_classperms()
250 cls = hashtab_search(policydb->p_classes.table, id); in read_classperms()
253 … fprintf(stderr, "Warning! Class %s used in neverallow undefined in policy being checked.\n", id); in read_classperms()
263 free(id); in read_classperms()
321 id = calloc(1, p - start + 1); in read_classperms()
322 if (!id) in read_classperms()
324 memcpy(id, start, p - start); in read_classperms()
326 printf(" %s", id); in read_classperms()
328 if (!strcmp(id, "*")) { in read_classperms()
336 perm = hashtab_search(cls->permissions.table, id); in read_classperms()
338 perm = hashtab_search(cls->comdatum->permissions.table, id); in read_classperms()
341 …n %s used in neverallow undefined in class %s in policy being checked.\n", id, policydb->p_class_v… in read_classperms()
346 free(id); in read_classperms()