Home
last modified time | relevance | path

Searched refs:perdatum (Results 1 – 8 of 8) sorted by relevance

/third_party/selinux/libsepol/src/
Dutil.c68 perm_datum_t *perdatum; in perm_name() local
70 perdatum = (perm_datum_t *) datum; in perm_name()
72 if (v->val == perdatum->s.value) { in perm_name()
Dpolicydb.c2049 perm_datum_t *perdatum; in perm_read() local
2054 perdatum = calloc(1, sizeof(perm_datum_t)); in perm_read()
2055 if (!perdatum) in perm_read()
2066 perdatum->s.value = le32_to_cpu(buf[1]); in perm_read()
2067 if (!value_isvalid(perdatum->s.value, nprim)) in perm_read()
2070 if (hashtab_insert(h, key, perdatum)) in perm_read()
2076 perm_destroy(key, perdatum, NULL); in perm_read()
Dservices.c1504 perm_datum_t *perdatum, *perdatum2; in validate_perm() local
1507 perdatum = (perm_datum_t *) datum; in validate_perm()
1514 if (perdatum->s.value != perdatum2->s.value) { in validate_perm()
Dwrite.c923 perm_datum_t *perdatum; in perm_write() local
929 perdatum = (perm_datum_t *) datum; in perm_write()
934 buf[items++] = cpu_to_le32(perdatum->s.value); in perm_write()
Dlink.c1958 perm_datum_t *perdatum = (perm_datum_t *) datum; in find_perm() local
1959 if (arg->valuep == perdatum->s.value) { in find_perm()
/third_party/selinux/checkpolicy/
Dpolicy_define.c495 perm_datum_t *perdatum = 0; in define_common_perms() local
538 perdatum = (perm_datum_t *) malloc(sizeof(perm_datum_t)); in define_common_perms()
539 if (!perdatum) { in define_common_perms()
543 memset(perdatum, 0, sizeof(perm_datum_t)); in define_common_perms()
544 perdatum->s.value = comdatum->permissions.nprim + 1; in define_common_perms()
546 if (perdatum->s.value > (sizeof(sepol_access_vector_t) * 8)) { in define_common_perms()
553 (hashtab_datum_t) perdatum); in define_common_perms()
579 if (perdatum) in define_common_perms()
580 free(perdatum); in define_common_perms()
589 perm_datum_t *perdatum = 0, *perdatum2 = 0; in define_av_perms() local
[all …]
Dmodule_compiler.c1181 const perm_datum_t *perdatum; in is_perm_in_scope() local
1185 perdatum = (perm_datum_t *) hashtab_search(cladatum->permissions.table, in is_perm_in_scope()
1187 if (perdatum == NULL) { in is_perm_in_scope()
1190 return is_perm_in_stack(perdatum->s.value, cladatum->s.value, in is_perm_in_scope()
Dcheckpolicy.c154 perm_datum_t *perdatum; in find_perm() local
156 perdatum = (perm_datum_t *) datum; in find_perm()
158 if (v->val == perdatum->s.value) { in find_perm()