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.c1778 node->key.specified |= AVTAB_ENABLED; in expand_terule_helper()
1780 node->key.specified &= ~AVTAB_ENABLED; in expand_terule_helper()
1856 node->key.specified |= AVTAB_ENABLED; in expand_avrule_helper()
1858 node->key.specified &= ~AVTAB_ENABLED; in expand_avrule_helper()
3248 if (!node || ((k->specified & AVTAB_ENABLED) != in expand_avtab_insert()
3249 (node->key.specified & AVTAB_ENABLED))) { in expand_avtab_insert()
3260 switch (k->specified & ~AVTAB_ENABLED) { in expand_avtab_insert()
3380 (k->specified & AVTAB_ENABLED) != in expand_cond_insert()
3381 (node->key.specified & AVTAB_ENABLED)) { in expand_cond_insert()
3401 switch (k->specified & ~AVTAB_ENABLED) { in expand_cond_insert()
Dwrite.c131 val = cur->key.specified & ~AVTAB_ENABLED; in avtab_write_item()
132 if (cur->key.specified & AVTAB_ENABLED) in avtab_write_item()
148 val |= (node->key.specified & ~AVTAB_ENABLED); in avtab_write_item()
150 if (node->key.specified & AVTAB_ENABLED) in avtab_write_item()
Dservices.c1429 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.c4138 c->node->key.specified &= ~AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4140 c->node->key.specified |= AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4146 c->node->key.specified &= ~AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4148 c->node->key.specified |= AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()