Searched refs:perdatum (Results 1 – 8 of 8) sorted by relevance
/external/libsepol/src/ |
D | util.c | 65 perm_datum_t *perdatum; in perm_name() local 67 perdatum = (perm_datum_t *) datum; in perm_name() 69 if (v->val == perdatum->s.value) { in perm_name()
|
D | services.c | 1388 perm_datum_t *perdatum, *perdatum2; in validate_perm() local 1391 perdatum = (perm_datum_t *) datum; in validate_perm() 1398 if (perdatum->s.value != perdatum2->s.value) { in validate_perm()
|
D | policydb.c | 1886 perm_datum_t *perdatum; in perm_read() local 1891 perdatum = calloc(1, sizeof(perm_datum_t)); in perm_read() 1892 if (!perdatum) in perm_read() 1900 perdatum->s.value = le32_to_cpu(buf[1]); in perm_read() 1910 if (hashtab_insert(h, key, perdatum)) in perm_read() 1916 perm_destroy(key, perdatum, NULL); in perm_read()
|
D | write.c | 808 perm_datum_t *perdatum; in perm_write() local 814 perdatum = (perm_datum_t *) datum; in perm_write() 819 buf[items++] = cpu_to_le32(perdatum->s.value); in perm_write()
|
D | link.c | 1967 perm_datum_t *perdatum = (perm_datum_t *) datum; in find_perm() local 1968 if (arg->valuep == perdatum->s.value) { in find_perm()
|
/external/checkpolicy/ |
D | policy_define.c | 488 perm_datum_t *perdatum = 0; in define_common_perms() local 531 perdatum = (perm_datum_t *) malloc(sizeof(perm_datum_t)); in define_common_perms() 532 if (!perdatum) { in define_common_perms() 536 memset(perdatum, 0, sizeof(perm_datum_t)); in define_common_perms() 537 perdatum->s.value = comdatum->permissions.nprim + 1; in define_common_perms() 539 if (perdatum->s.value > (sizeof(sepol_access_vector_t) * 8)) { in define_common_perms() 546 (hashtab_datum_t) perdatum); in define_common_perms() 572 if (perdatum) in define_common_perms() 573 free(perdatum); in define_common_perms() 582 perm_datum_t *perdatum = 0, *perdatum2 = 0; in define_av_perms() local [all …]
|
D | checkpolicy.c | 147 perm_datum_t *perdatum; in find_perm() local 149 perdatum = (perm_datum_t *) datum; in find_perm() 151 if (v->val == perdatum->s.value) { in find_perm()
|
D | module_compiler.c | 1299 perm_datum_t *perdatum; in is_perm_in_scope() local 1303 perdatum = (perm_datum_t *) hashtab_search(cladatum->permissions.table, in is_perm_in_scope() 1305 if (perdatum == NULL) { in is_perm_in_scope() 1308 return is_perm_in_stack(perdatum->s.value, cladatum->s.value, in is_perm_in_scope()
|