Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Dconditional.c322 cur->node->key.specified &= ~AVTAB_ENABLED; in evaluate_cond_node()
324 cur->node->key.specified |= AVTAB_ENABLED; in evaluate_cond_node()
331 cur->node->key.specified &= ~AVTAB_ENABLED; in evaluate_cond_node()
333 cur->node->key.specified |= AVTAB_ENABLED; in evaluate_cond_node()
885 if ((uint16_t) (AVTAB_ALLOWED | AVTAB_ENABLED) == in cond_compute_av()
886 (node->key.specified & (AVTAB_ALLOWED | AVTAB_ENABLED))) in cond_compute_av()
888 if ((uint16_t) (AVTAB_AUDITDENY | AVTAB_ENABLED) == in cond_compute_av()
889 (node->key.specified & (AVTAB_AUDITDENY | AVTAB_ENABLED))) in cond_compute_av()
896 if ((uint16_t) (AVTAB_AUDITALLOW | AVTAB_ENABLED) == in cond_compute_av()
897 (node->key.specified & (AVTAB_AUDITALLOW | AVTAB_ENABLED))) in cond_compute_av()
Davtab.c140 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_insert()
185 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_insert_nonunique()
217 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_search()
252 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_search_node()
285 specified &= ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_search_node_next()
491 enabled = (val & AVTAB_ENABLED_OLD) ? AVTAB_ENABLED : 0; in avtab_read_item()
Dexpand.c1757 node->key.specified |= AVTAB_ENABLED; in expand_terule_helper()
1759 node->key.specified &= ~AVTAB_ENABLED; in expand_terule_helper()
1835 node->key.specified |= AVTAB_ENABLED; in expand_avrule_helper()
1837 node->key.specified &= ~AVTAB_ENABLED; in expand_avrule_helper()
3211 if (!node || ((k->specified & AVTAB_ENABLED) != in expand_avtab_insert()
3212 (node->key.specified & AVTAB_ENABLED))) { in expand_avtab_insert()
3223 switch (k->specified & ~AVTAB_ENABLED) { in expand_avtab_insert()
3335 (k->specified & AVTAB_ENABLED) != in expand_cond_insert()
3336 (node->key.specified & AVTAB_ENABLED)) { in expand_cond_insert()
3356 switch (k->specified & ~AVTAB_ENABLED) { in expand_cond_insert()
Dwrite.c136 val = cur->key.specified & ~AVTAB_ENABLED; in avtab_write_item()
137 if (cur->key.specified & AVTAB_ENABLED) in avtab_write_item()
153 val |= (node->key.specified & ~AVTAB_ENABLED); in avtab_write_item()
155 if (node->key.specified & AVTAB_ENABLED) in avtab_write_item()
Dservices.c1425 if (node->key.specified & AVTAB_ENABLED) { in sepol_compute_sid()
/external/selinux/checkpolicy/test/
Ddispol.c94 AVTAB_ENABLED)) in render_av_rule()
98 AVTAB_ENABLED)))) { in render_av_rule()
104 if (key->specified & AVTAB_ENABLED) in render_av_rule()
106 else if (!(key->specified & AVTAB_ENABLED)) in render_av_rule()
/external/selinux/libsepol/include/sepol/policydb/
Davtab.h69 #define AVTAB_ENABLED 0x8000 /* reserved for used in cond_avtab */ macro
/external/selinux/libsepol/cil/src/
Dcil_binary.c4070 c->node->key.specified &= ~AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4072 c->node->key.specified |= AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4078 c->node->key.specified &= ~AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4080 c->node->key.specified |= AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()