Home
last modified time | relevance | path

Searched refs:newgenfs (Results 1 – 3 of 3) sorted by relevance

/external/libsepol/src/
Dpolicydb.c2684 genfs_t *genfs_p, *newgenfs, *genfs; in genfs_read() local
2699 newgenfs = calloc(1, sizeof(genfs_t)); in genfs_read()
2700 if (!newgenfs) in genfs_read()
2702 newgenfs->fstype = malloc(len + 1); in genfs_read()
2703 if (!newgenfs->fstype) { in genfs_read()
2704 free(newgenfs); in genfs_read()
2707 rc = next_entry(newgenfs->fstype, fp, len); in genfs_read()
2709 free(newgenfs->fstype); in genfs_read()
2710 free(newgenfs); in genfs_read()
2713 newgenfs->fstype[len] = 0; in genfs_read()
[all …]
Dexpand.c2304 genfs_t *genfs, *newgenfs, *end; in genfs_copy() local
2308 newgenfs = malloc(sizeof(genfs_t)); in genfs_copy()
2309 if (!newgenfs) { in genfs_copy()
2313 memset(newgenfs, 0, sizeof(genfs_t)); in genfs_copy()
2314 newgenfs->fstype = strdup(genfs->fstype); in genfs_copy()
2315 if (!newgenfs->fstype) { in genfs_copy()
2316 free(newgenfs); in genfs_copy()
2321 state->out->genfs = newgenfs; in genfs_copy()
2323 end->next = newgenfs; in genfs_copy()
2324 end = newgenfs; in genfs_copy()
[all …]
/external/checkpolicy/
Dpolicy_define.c4452 struct genfs *genfs_p, *genfs, *newgenfs; in define_genfs_context_helper() local
4478 newgenfs = malloc(sizeof(struct genfs)); in define_genfs_context_helper()
4479 if (!newgenfs) { in define_genfs_context_helper()
4483 memset(newgenfs, 0, sizeof(struct genfs)); in define_genfs_context_helper()
4484 newgenfs->fstype = fstype; in define_genfs_context_helper()
4485 newgenfs->next = genfs; in define_genfs_context_helper()
4487 genfs_p->next = newgenfs; in define_genfs_context_helper()
4489 policydbp->genfs = newgenfs; in define_genfs_context_helper()
4490 genfs = newgenfs; in define_genfs_context_helper()