Searched refs:newgenfs (Results 1 – 3 of 3) sorted by relevance
/external/selinux/libsepol/src/ |
D | policydb.c | 2990 genfs_t *genfs_p, *newgenfs, *genfs; in genfs_read() local 3007 newgenfs = calloc(1, sizeof(genfs_t)); in genfs_read() 3008 if (!newgenfs) in genfs_read() 3010 newgenfs->fstype = malloc(len + 1); in genfs_read() 3011 if (!newgenfs->fstype) { in genfs_read() 3012 free(newgenfs); in genfs_read() 3015 rc = next_entry(newgenfs->fstype, fp, len); in genfs_read() 3017 free(newgenfs->fstype); in genfs_read() 3018 free(newgenfs); in genfs_read() 3021 newgenfs->fstype[len] = 0; in genfs_read() [all …]
|
D | expand.c | 2267 genfs_t *genfs, *newgenfs, *end; in genfs_copy() local 2271 newgenfs = malloc(sizeof(genfs_t)); in genfs_copy() 2272 if (!newgenfs) { in genfs_copy() 2276 memset(newgenfs, 0, sizeof(genfs_t)); in genfs_copy() 2277 newgenfs->fstype = strdup(genfs->fstype); in genfs_copy() 2278 if (!newgenfs->fstype) { in genfs_copy() 2279 free(newgenfs); in genfs_copy() 2284 state->out->genfs = newgenfs; in genfs_copy() 2286 end->next = newgenfs; in genfs_copy() 2287 end = newgenfs; in genfs_copy() [all …]
|
/external/selinux/checkpolicy/ |
D | policy_define.c | 5510 struct genfs *genfs_p, *genfs, *newgenfs; in define_genfs_context_helper() local 5536 newgenfs = malloc(sizeof(struct genfs)); in define_genfs_context_helper() 5537 if (!newgenfs) { in define_genfs_context_helper() 5541 memset(newgenfs, 0, sizeof(struct genfs)); in define_genfs_context_helper() 5542 newgenfs->fstype = fstype; in define_genfs_context_helper() 5543 newgenfs->next = genfs; in define_genfs_context_helper() 5545 genfs_p->next = newgenfs; in define_genfs_context_helper() 5547 policydbp->genfs = newgenfs; in define_genfs_context_helper() 5548 genfs = newgenfs; in define_genfs_context_helper()
|