Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Dpolicydb.c2725 genfs_t *genfs_p, *newgenfs, *genfs; in genfs_read() local
2740 newgenfs = calloc(1, sizeof(genfs_t)); in genfs_read()
2741 if (!newgenfs) in genfs_read()
2743 newgenfs->fstype = malloc(len + 1); in genfs_read()
2744 if (!newgenfs->fstype) { in genfs_read()
2745 free(newgenfs); in genfs_read()
2748 rc = next_entry(newgenfs->fstype, fp, len); in genfs_read()
2750 free(newgenfs->fstype); in genfs_read()
2751 free(newgenfs); in genfs_read()
2754 newgenfs->fstype[len] = 0; in genfs_read()
[all …]
Dexpand.c2261 genfs_t *genfs, *newgenfs, *end; in genfs_copy() local
2265 newgenfs = malloc(sizeof(genfs_t)); in genfs_copy()
2266 if (!newgenfs) { in genfs_copy()
2270 memset(newgenfs, 0, sizeof(genfs_t)); in genfs_copy()
2271 newgenfs->fstype = strdup(genfs->fstype); in genfs_copy()
2272 if (!newgenfs->fstype) { in genfs_copy()
2273 free(newgenfs); in genfs_copy()
2278 state->out->genfs = newgenfs; in genfs_copy()
2280 end->next = newgenfs; in genfs_copy()
2281 end = newgenfs; in genfs_copy()
[all …]
/external/selinux/checkpolicy/
Dpolicy_define.c5226 struct genfs *genfs_p, *genfs, *newgenfs; in define_genfs_context_helper() local
5252 newgenfs = malloc(sizeof(struct genfs)); in define_genfs_context_helper()
5253 if (!newgenfs) { in define_genfs_context_helper()
5257 memset(newgenfs, 0, sizeof(struct genfs)); in define_genfs_context_helper()
5258 newgenfs->fstype = fstype; in define_genfs_context_helper()
5259 newgenfs->next = genfs; in define_genfs_context_helper()
5261 genfs_p->next = newgenfs; in define_genfs_context_helper()
5263 policydbp->genfs = newgenfs; in define_genfs_context_helper()
5264 genfs = newgenfs; in define_genfs_context_helper()