Home
last modified time | relevance | path

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

/third_party/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()
882 if ((uint16_t) (AVTAB_ALLOWED | AVTAB_ENABLED) == in cond_compute_av()
883 (node->key.specified & (AVTAB_ALLOWED | AVTAB_ENABLED))) in cond_compute_av()
885 if ((uint16_t) (AVTAB_AUDITDENY | AVTAB_ENABLED) == in cond_compute_av()
886 (node->key.specified & (AVTAB_AUDITDENY | AVTAB_ENABLED))) in cond_compute_av()
893 if ((uint16_t) (AVTAB_AUDITALLOW | AVTAB_ENABLED) == in cond_compute_av()
894 (node->key.specified & (AVTAB_AUDITALLOW | AVTAB_ENABLED))) in cond_compute_av()
Davtab.c141 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_insert()
186 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_insert_nonunique()
218 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_search()
253 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_search_node()
286 specified &= ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_search_node_next()
492 enabled = (val & AVTAB_ENABLED_OLD) ? AVTAB_ENABLED : 0; in avtab_read_item()
Dexpand.c1761 node->key.specified |= AVTAB_ENABLED; in expand_terule_helper()
1763 node->key.specified &= ~AVTAB_ENABLED; in expand_terule_helper()
1839 node->key.specified |= AVTAB_ENABLED; in expand_avrule_helper()
1841 node->key.specified &= ~AVTAB_ENABLED; in expand_avrule_helper()
3216 if (!node || ((k->specified & AVTAB_ENABLED) != in expand_avtab_insert()
3217 (node->key.specified & AVTAB_ENABLED))) { in expand_avtab_insert()
3228 switch (k->specified & ~AVTAB_ENABLED) { in expand_avtab_insert()
3340 (k->specified & AVTAB_ENABLED) != in expand_cond_insert()
3341 (node->key.specified & AVTAB_ENABLED)) { in expand_cond_insert()
3361 switch (k->specified & ~AVTAB_ENABLED) { in expand_cond_insert()
Dwrite.c135 val = cur->key.specified & ~AVTAB_ENABLED; in avtab_write_item()
136 if (cur->key.specified & AVTAB_ENABLED) in avtab_write_item()
152 val |= (node->key.specified & ~AVTAB_ENABLED); in avtab_write_item()
154 if (node->key.specified & AVTAB_ENABLED) in avtab_write_item()
Dservices.c1410 if (node->key.specified & AVTAB_ENABLED) { in sepol_compute_sid()
/third_party/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()
/third_party/selinux/libsepol/include/sepol/policydb/
Davtab.h69 #define AVTAB_ENABLED 0x8000 /* reserved for used in cond_avtab */ macro
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c4155 c->node->key.specified &= ~AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4157 c->node->key.specified |= AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4163 c->node->key.specified &= ~AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4165 c->node->key.specified |= AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()